9
3

Brainshock.lua 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : Spells/Mage/Enchanter/Coercer/Brainshock.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.14 06:03:59
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DoTType, MinVal, MaxVal, PowerDmg, PowerHeal)
  9. -- Inflicts 14 - 17 mental damage on target instantly and every 6 seconds
  10. if MaxVal ~= nil and MinVal < MaxVal then
  11. SpellDamage(Target, DoTType, math.random(MinVal, MaxVal))
  12. else
  13. SpellDamage(Target, DoTType, MinVal)
  14. end
  15. -- Decreases power of target by 2 instantly and every 6 seconds
  16. ModifyPower(Target, PowerDmg)
  17. -- Increases power of caster by 5
  18. SpellHeal("Power", PowerHeal, PowerHeal, Caster)
  19. end
  20. function tick(Caster, Target, DoTType, MinVal, MaxVal, PowerDmg, PowerHeal)
  21. if MaxVal ~= nil and MinVal < MaxVal then
  22. SpellDamage(Target, DoTType, math.random(MinVal, MaxVal))
  23. else
  24. SpellDamage(Target, DoTType, MinVal)
  25. end
  26. ModifyPower(Target, PowerDmg)
  27. SpellHeal("Power", PowerHeal, PowerHeal, Caster)
  28. end