IceSpears.lua 862 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Wizard/IceSpears.lua
  3. Script Author : Zcoretri
  4. Script Date : 2013.07.12 11:38:48
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DoTType, MinVal, MaxVal, BonusAmt)
  9. if MaxVal ~= nil and MinVal < MaxVal then
  10. SpellDamage(Target, DoTType, math.random(MinVal, MaxVal))
  11. else
  12. SpellDamage(Target, DoTType, MinVal)
  13. end
  14. AddSpellBonus(Target, 200, BonusAmt) -- vs Elemental
  15. end
  16. function tick(Caster, Target, DoTType, MinVal, MaxVal, BonusAmt)
  17. if MaxVal ~= nil and MinVal < MaxVal then
  18. SpellDamage(Target, DoTType, math.random(MinVal, MaxVal))
  19. else
  20. SpellDamage(Target, DoTType, MinVal)
  21. end
  22. end
  23. function remove(Caster, Target, DoTType, MinVal, MaxVal, BonusAmt)
  24. RemoveSpellBonus(Target)
  25. end