VampireBats.lua 1023 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : Spells/Mage/Summoner/VampireBats.lua
  3. Script Author : Jabantiz
  4. Script Date : 2013.12.08 12:12:29
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DoTType, MinVal, MaxVal, bonus)
  9. -- Inflicts 14 - 22 piercing damage on target 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 Defense of target by 2.7
  16. AddSkillBonus(Target, GetSkillIDByName("Defense"), bonus)
  17. end
  18. function tick(Caster, Target, DoTType, MinVal, MaxVal)
  19. -- Inflicts 14 - 22 piercing damage on target instantly and every 4 seconds
  20. if MaxVal ~= nil and MinVal < MaxVal then
  21. SpellDamage(Target, DoTType, math.random(MinVal, MaxVal))
  22. else
  23. SpellDamage(Target, DoTType, MinVal)
  24. end
  25. end
  26. function remove(Caster, Target)
  27. RemoveSkillBonus(Target)
  28. end