SimpleMinds.lua 916 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : Spells/Mage/Enchanter/Coercer/SimpleMinds.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.14 06:03:09
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DoTType, MinVal, MaxVal, PowerDmg)
  9. -- Inflicts 12 - 14 mental damage on target encounter instantly and every 4 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 encounter by 4 instantly and every 4 seconds
  16. ModifyPower(Target, PowerDmg)
  17. end
  18. function tick(Caster, Target, DoTType, MinVal, MaxVal, PowerDmg)
  19. if MaxVal ~= nil and MinVal < MaxVal then
  20. SpellDamage(Target, DoTType, math.random(MinVal, MaxVal))
  21. else
  22. SpellDamage(Target, DoTType, MinVal)
  23. end
  24. ModifyPower(Target, PowerDmg)
  25. end