BlazingAvatar.lua 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : Spells/Mage/Summoner/Conjuror/BlazingAvatar.lua
  3. Script Author : neatz09
  4. Script Date : 2019.11.11 06:11:50
  5. Script Purpose :
  6. :
  7. --]]
  8. -- When damaged with a melee weapon this spell will cast Blaze on target's attacker.
  9. -- Inflicts 218 - 363 heat damage on target
  10. -- Grants a total of 5 triggers of the spell.
  11. -- On any combat or spell hit this spell will cast Blaze on target of attack.
  12. -- Inflicts 218 - 363 heat damage on target
  13. -- Grants a total of 5 triggers of the spell.
  14. function cast(Caster, Target, DmgType, MinVal, MaxVal, Triggers)
  15. AddProc(Target, 16, 100) --Damaged Melee
  16. AddProc(Target, 1, 100) --Offensive
  17. SetSpellTriggerCount(Triggers, 1)
  18. end
  19. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal, Triggers)
  20. if Type == 16 or Type == 1 then
  21. ProcDamage(Caster, Target, "Blaze", DmgType, MinVal, MaxVal)
  22. RemoveTriggerFromSpell(1)
  23. end
  24. end
  25. function remove(Caster, Target)
  26. RemoveProc(Target)
  27. end