9
3

WallofRage.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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. -- Decreases Haste of caster by 11.3
  9. -- Increases Mitigation of caster vs physical damage by 133
  10. -- 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.
  11. -- Slows targets in Area of Effect by 29.3%
  12. -- 5% chance to dispel when target receives hostile action
  13. -- 5% chance to dispel when target takes damage
  14. function cast(Caster, Target, Haste, Mit, SlowAmt, Chance)
  15. AddSpellBonus(Target, 617, Haste)
  16. AddSpellBonus(Caster, 200, Mit)
  17. AddSpellBonus(Caster, 201, Mit)
  18. AddSpellBonus(Caster, 202, Mit)
  19. AddSpellBonus(Caster, 203, Mit)
  20. AddProc(Target, 3, 12)
  21. end
  22. function proc(Caster, Target, Type, Haste, Mit, SlowAmt, Chance)
  23. Spell = GetSpell(5431, GetSpellTier())
  24. if Type == 3 then
  25. local Slow = 100 - SlowAmt
  26. SetSpellDataIndex(Spell, 0, Slow)
  27. CastCustomSpell(Spell, Caster, Target)
  28. end
  29. end
  30. function remove(Caster, Target)
  31. RemoveSpellBonus(Caster)
  32. end