9
3

AggressiveDefense.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Berserker/AggressiveDefense.lua
  3. Script Author : neatz09
  4. Script Date : 2020.09.02 11:09:25
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Increases Mitigation of caster vs elemental, noxious and arcane damage by 46
  9. -- When damaged with a melee weapon this spell has a 20% chance to cast Provoking Counterattack on target's attacker.
  10. -- Increases Threat to target by 20
  11. -- Inflicts 3 - 6 slashing damage on target
  12. -- On a block this spell will cast Provoking Counterattack on target's victim.
  13. -- Increases Threat to target by 20
  14. function cast(Caster, Target, Mit, Hate, DmgType, MinVal, MaxVal)
  15. AddSpellBonus(Target, 201, Mit)
  16. AddSpellBonus(Target, 202, Mit)
  17. AddSpellBonus(Target, 203, Mit)
  18. AddProc(Target, 16, 20)
  19. AddProc(Target, 7, 20)
  20. end
  21. function proc(Caster, Target, Type, Mit, Hate, DmgType, MinVal, MaxVal)
  22. if Type == 16 then
  23. ProcHate(Caster, Target, Hate, "Provoking Counterattack")
  24. ProcDamage(Caster, Target, "Provoking Counterattack", DmgType, DmgMin, DmgType)
  25. end
  26. if Type == 7 then
  27. ProcHate(Caster, Target, Hate, "Provoking Counterattack")
  28. end
  29. end
  30. function remove(Caster, Target)
  31. RemoveSpellBonus(Target)
  32. RemoveProc(Target)
  33. end