RosBlade.lua 783 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Wizard/RosBlade.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.10 10:10:48
  5. Script Purpose :
  6. :
  7. --]]
  8. --On a combat hit this spell may cast Flametongue on target of attack. Lasts for 3.0 seconds. Triggers about 5.0 times per minute.
  9. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  10. AddProc(Target, 3, 19)
  11. end
  12. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal)
  13. Spell = GetSpell(5434, GetSpellTier())
  14. if Type == 3 then
  15. SetSpellDataIndex(Spell, 0, DmgType)
  16. SetSpellDataIndex(Spell, 1, MinVal)
  17. SetSpellDataIndex(Spell, 2, MaxVal)
  18. CastCustomSpell(Spell, Caster, Target)
  19. end
  20. end
  21. function remove(Caster, Target)
  22. RemoveProc(Target)
  23. end