EnGarde.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Swashbuckler/EnGarde.lua
  3. Script Author : neatz09
  4. Script Date : 2020.02.02 03:02:20
  5. Script Purpose :
  6. :
  7. --]]
  8. -- When a combat art is used this spell has a 15% chance to cast Counterattack on target of combat art.
  9. -- Inflicts 166 - 276 melee damage on target
  10. -- When blocked this spell will cast Counterattack on target's victim.
  11. -- Inflicts 166 - 276 melee damage on target
  12. -- When parried this spell will cast Counterattack on target's victim.
  13. -- Inflicts 166 - 276 melee damage on target
  14. -- When deflected this spell will cast Counterattack on target's victim.
  15. -- Inflicts 166 - 276 melee damage on target
  16. -- When riposted this spell will cast Counterattack on target's victim.
  17. -- Inflicts 166 - 276 melee damage on target
  18. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  19. AddProc(Target, 3, 15) --Combat art
  20. AddProc(Target, 7, 100) -- Blocked
  21. AddProc(Target, 8, 100) -- Parried
  22. --AddProc(Target, 1, 100) -- Deflected missing functionality
  23. AddProc(Target, 9, 100) -- riposte
  24. end
  25. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal)
  26. if Type == 3 or Type == 7 or Type == 8 or Type == 9 then
  27. --no deflection
  28. ProcDamage(Caster, Target, "Counterattack", DmgType, MinVal, MaxVal)
  29. end
  30. end
  31. function remove(Caster, Target)
  32. RemoveProc(Target)
  33. end