Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. heal = {}
  2. heal[1] = {words = "strong evocation", cooldown = "utura gran", MP = 54}
  3. heal[2] = {words = "evocation", cooldown = "exura san", MP = 84}
  4.  
  5. Module.New('heal', function(module)
  6. local creature = Creature.GetByID(Self.ID())
  7. for i = 1, #heal do
  8. local hea = heal[i]
  9. if (creature:ManaPercent() <= hea.MP) and Self.CanCastSpell(hea.words) and Self.GetSpellCooldown(hea.cooldown) == 0 then
  10. Self.Say(hea.words)
  11. end
  12. end
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement