Manatap.lua 908 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : Spells/Mage/Enchanter/Illusionist/Manatap.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.12 03:10:32
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, HealType, EncPwr, GrpPwr)
  9. local group = GetGroup(Caster)
  10. SpellHeal("Power", EncPwr)
  11. if group == nil then
  12. SpellHeal("Power", GrpPwr, 0, Caster)
  13. else
  14. for k,v in ipairs(group) do
  15. SpellHeal("Power", GrpPwr, 0, v)
  16. end
  17. end
  18. end
  19. function tick(Caster, Target, HealType, EncPwr, GrpPwr)
  20. -- Decreases power of target encounter by 63 instantly and every 4 seconds
  21. -- Increases power of group members (AE) by 47 instantly and every 4 seconds
  22. local group = GetGroup(Caster)
  23. SpellHeal("Power", EncPower)
  24. if group == nil then
  25. SpellHeal("Power", GrpPwr, 0, Caster)
  26. else
  27. for k,v in ipairs(group) do
  28. SpellHeal("Power", GrpPwr, 0, v)
  29. end
  30. end
  31. end