TapEssence.lua 624 B

12345678910111213141516171819202122
  1. --[[
  2. Script Name : Spells/Scout/Bard/Troubador/TapEssence.lua
  3. Script Author : neatz09
  4. Script Date : 2021.01.09 11:01:23
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 48 - 80 mental damage on target encounter
  9. -- Increases power of group members (AE) by 40 - 66
  10. function cast(Caster, Target, DmgType, MinVal, MaxVal, MinPwr, MaxPwr)
  11. local group = GetGroup(Caster)
  12. SpellDamage(Target, DmgType, MinVal, MaxVal)
  13. if group == nil then
  14. SpellHeal("Power", MinPwr, MaxPwr, Caster)
  15. else
  16. for k,v in ipairs(group) do
  17. SpellHeal("Power", MinPwr, MaxPwr, v)
  18. end
  19. end
  20. end