9
3

CannibalizeThoughts.lua 941 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : Spells/Mage/Enchanter/Coercer/CannibalizeThoughts.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.22 05:10:15
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Increases power of group members (AE) by 11 instantly and every 6 seconds
  9. -- Decreases INT of target by 44.3
  10. function cast(Caster, Target, Int, GrpPwr)
  11. AddSpellBonus(Target, 4, Int)
  12. local group = GetGroup(Caster)
  13. if group == nil then
  14. SpellHeal("Power", GrpPwr, 0, Caster)
  15. else
  16. for k,v in ipairs(GetGroup(Spawn)) do
  17. SpellHeal("Power", GrpPwr, 0, v)
  18. end
  19. end
  20. end
  21. function tick(Caster, Target, Int, GrpPwr)
  22. local group = GetGroup(Caster)
  23. if group == nil then
  24. SpellHeal("Power", GrpPwr, 0, Caster)
  25. else
  26. for k,v in ipairs(GetGroup(Spawn)) do
  27. SpellHeal("Power", GrpPwr, 0, v)
  28. end
  29. end
  30. end
  31. function remove(Caster, Target)
  32. RemoveSpellBonus(Target)
  33. end