9
3

BladeFlurry.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : Spells/Scout/Predator/BladeFlurry.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.04 01:11:37
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Decreases Defense of caster by 5.1
  9. -- Increases Slashing, Piercing, Ranged and Crushing of caster by 6.9
  10. -- On a melee hit this spell may cast Swipe on target of attack. Triggers about 2.0 times per minute.
  11. -- Inflicts 35 - 58 melee damage on target
  12. function cast(Caster, Target, Def, OffSkillz, DmgType, MinVal, MaxVal, Chance)
  13. AddSkillBonus(Target, GetSkillIDByName("Defense"), Def)
  14. AddSkillBonus(Target, GetSkillIDByName("Piercing"), OffSkillz)
  15. AddSkillBonus(Target, GetSkillIDByName("Ranged"), OffSkillz)
  16. AddSkillBonus(Target, GetSkillIDByName("Crushing"), OffSkillz)
  17. AddSkillBonus(Target, GetSkillIDByName("Slashing"), OffSkillz)
  18. AddProc(Target, 3, Chance)
  19. end
  20. function proc(Caster, Target, Type, Def, OffSkillz, DmgType, MinVal, MaxVal, Chance)
  21. if Type == 3 then
  22. ProcDamage(Caster, Target, "Swipe", DmgType, MinVal, MaxVal)
  23. end
  24. end
  25. function remove(Caster, Target)
  26. RemoveProc(Target)
  27. RemoveSkillBonus(Target)
  28. end