WallofRage.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Berserker/WallofRage.lua
  3. Script Author : neatz09
  4. Script Date : 2020.09.25 12:09:31
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- Decreases Haste of caster by 11.3
  10. -- Increases Mitigation of caster vs physical damage by 133
  11. -- On a melee hit this spell may cast Cripple on target of attack. Lasts for 10.0 seconds. Triggers about 5.0 times per minute.
  12. -- Slows targets in Area of Effect by 29.3%
  13. -- 5% chance to dispel when target receives hostile action
  14. -- 5% chance to dispel when target takes damage
  15. function cast(Caster, Target, Haste, Mit, SlowAmt, Chance)
  16. AddSpellBonus(Target, 617, Haste)
  17. AddSpellBonus(Caster, 200, Mit)
  18. AddSpellBonus(Caster, 201, Mit)
  19. AddSpellBonus(Caster, 202, Mit)
  20. AddSpellBonus(Caster, 203, Mit)
  21. AddProc(Target, 3, 12)
  22. end
  23. function proc(Caster, Target, Type, Haste, Mit, SlowAmt, Chance)
  24. Say(Caster, "CastCrippleHere")
  25. end
  26. function remove(Caster, Target)
  27. RemoveSpellBonus(Caster)
  28. SetSpeedMultiplier(Target, 1)
  29. end