9
3

RisingPhoenix.lua 806 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : Spells/Fighter/Brawler/Monk/RisingPhoenix.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.01.13 05:01:06
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  9. -- Inflicts 54 - 90 melee damage on target
  10. if MaxVal ~= nil and MinVal < MaxVal then
  11. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  12. else
  13. SpellDamage(Target, DmgType, MinVal)
  14. end
  15. if not IsEpic(Target) then
  16. Knocback(Caster, Target, 4000)
  17. BlurVision(Target, 1.0)
  18. AddControlEffect(Target, 4)
  19. AddSpellTimer(1500, "RemoveKnockback")
  20. end
  21. end
  22. function RemoveKnockback(Caster, Target)
  23. BlurVision(Target, 0.0)
  24. RemoveControlEffect(Target, 4)
  25. end