WhirlingBlades.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. Say(Caster, "Fervor Not Implemented.")
  10. -- On a melee hit this spell may cast Swipe on target of attack. Triggers about 2.0 times per minute.
  11. AddProc(Target, 3, 10)
  12. -- Decreases Defense of caster by 5.1
  13. AddSkillBonus(Target, GetSkillIDByName("Defense"), Def)
  14. -- Increases Slashing, Piercing, Ranged and Crushing of caster by 6.9
  15. AddSkillBonus(Target, GetSkillIDByName("Slashing"), OffSkills)
  16. AddSkillBonus(Target, GetSkillIDByName("Piercing"), OffSkills)
  17. AddSkillBonus(Target, GetSkillIDByName("Ranged"), OffSkills)
  18. AddSkillBonus(Target, GetSkillIDByName("Crushing"), OffSkills)
  19. end
  20. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal, Def, OffSkills)
  21. -- On a melee hit this spell may cast Swipe on target of attack. Triggers about 2.0 times per minute.
  22. if Type == 3 then
  23. -- Inflicts 62 - 104 melee damage on target
  24. ProcDamage(Caster, Target, "Swipe", DmgType, MinVal, MaxVal)
  25. end
  26. end
  27. function remove(Caster, Target)
  28. RemoveSkillBonus(Target)
  29. RemoveProc(Target)
  30. end