Iceshield.lua 740 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Wizard/Iceshield.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.25 05:10:11
  5. Script Purpose :
  6. :
  7. --]]
  8. -- When damaged with a melee weapon this spell will cast Frost Spikes on target's attacker.
  9. -- Inflicts 83 - 101 cold damage on target
  10. -- Grants a total of 3 triggers of the spell.
  11. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  12. AddProc(Target, 16, 100)
  13. SetSpellTriggerCount(3, 1)
  14. end
  15. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal)
  16. ProcDamage(Caster, Target, "Frost Spikes", DmgType, MinVal, MaxVal)
  17. RemoveTriggerFromSpell(1)
  18. end
  19. function remove(Caster, Target)
  20. RemoveProc(Target)
  21. end