WhirlingBlades.lua 1.3 KB

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