SurgeofRo.lua 890 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Wizard/SurgeofRo.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.25 05:10:37
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- On a hostile spell cast this spell will cast Flame Surge on target of spell. Lasts for 3.0 seconds.
  10. -- Inflicts 38 - 46 heat damage on target instantly and every second
  11. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  12. AddProc(Target, 5, 100)
  13. end
  14. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal)
  15. Spell = GetSpell(5496, GetSpellTier())
  16. if Type == 5 then
  17. SetSpellDataIndex(Spell, 0, DmgType)
  18. SetSpellDataIndex(Spell, 1, MinVal)
  19. SetSpellDataIndex(Spell, 2, MaxVal)
  20. CastCustomSpell(Spell, Caster, Target)
  21. end
  22. end
  23. function remove(Caster, Target)
  24. RemoveProc(Target)
  25. end