9
3

WarCry.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Berserker/WarCry.lua
  3. Script Author : neatz09
  4. Script Date : 2020.02.29 01:02:41
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- When damaged this spell has a 5% chance to cast Berserk on target. Lasts for 10.0 seconds.
  10. -- Increases Haste of target by 10.2
  11. -- Increases DPS of target by 10.2
  12. -- On any combat or spell hit this spell may cast Berserk on target. Lasts for 10.0 seconds. Triggers about 3.0 times per minute.
  13. -- Increases Haste of target by 10.2
  14. -- Increases DPS of target by 10.2
  15. -- On a kill this spell has a 50% chance to cast Berserk on target. Lasts for 10.0 seconds.
  16. -- Increases Haste of target by 10.2
  17. -- Increases DPS of target by 10.2
  18. function cast(Caster, Target, Haste)
  19. AddProc(Target, 1, 20, nil, 1) --Combat
  20. AddProc(Target, 15, 5, nil, 1) --Damaged
  21. AddProc(Target, 14, 50, nil, 1) --Kill
  22. end
  23. function proc(Caster, Target, Type, Haste)
  24. Spell = GetSpell(5172, GetSpellTier())
  25. if Type == 1 or Type == 15 or Type == 14 then
  26. SetSpellDataIndex(Spell, 0, Haste)
  27. CastCustomSpell(Spell, Caster, Target)
  28. end
  29. end
  30. function remove(Caster, Target)
  31. RemoveProc(Target)
  32. end