9
3

Manatap.lua 909 B

12345678910111213141516171819202122232425262728293031323334
  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. SpellHeal("Power", EncPwr)
  10. local group = GetGroup(Caster)
  11. if group == nil then
  12. SpellHeal("Power", GrpPwr, 0, Caster)
  13. else
  14. for k,v in ipairs(GetGroup(Spawn)) 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. SpellHeal("Power", EncPower)
  23. local group = GetGroup(Caster)
  24. if group == nil then
  25. SpellHeal("Power", GrpPwr, 0, Caster)
  26. else
  27. for k,v in ipairs(GetGroup(Spawn)) do
  28. SpellHeal("Power", GrpPwr, 0, v)
  29. end
  30. end
  31. end