9
3

Rampage.lua 882 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Berserker/Rampage.lua
  3. Script Author : neatz09
  4. Script Date : 2020.05.10 07:05:14
  5. Script Purpose :
  6. :
  7. --]]
  8. -- On a melee hit this spell will cast Rampaging Blow on target of attack.
  9. -- Grants a total of 10 triggers of the spell.
  10. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  11. Say(Caster, "Needs AoE override. This spell really should cast a subspell")
  12. AddProc(Target, 3, 100)
  13. SetSpellTriggerCount(10, 1)
  14. end
  15. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal)
  16. if Type == 3 then
  17. --- Inflicts 250 - 466 melee damage on targets in Area of Effect
  18. ProcDamage(Caster, Target, "Rampaging Blow", DmgType, MinVal, MaxVal)
  19. RemoveTriggerFromSpell(1)
  20. end
  21. end
  22. function remove(Caster, Target)
  23. RemoveProc(Target)
  24. end