ArchersFury.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : Spells/Scout/Predator/Ranger/ArchersFury.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.10 07:03:13
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, Dmg, DefAmt, SkillAmt)
  9. -- On a ranged hit this spell has a 30% chance to cast Quick Shot on target of attack.
  10. AddProc(Target, 18, 30)
  11. -- Decreases Defense of caster by 5.1
  12. AddSkillBonus(Target, GetSkillIDByName("Defense"), DefAmt)
  13. -- Increases Crushing, Piercing, Ranged and Slashing of caster by 6.9
  14. AddSkillBonus(Target, GetSkillIDByName("Crushing"), SkillAmt)
  15. AddSkillBonus(Target, GetSkillIDByName("Piercing"), SkillAmt)
  16. AddSkillBonus(Target, GetSkillIDByName("Ranged"), SkillAmt)
  17. AddSkillBonus(Target, GetSkillIDByName("Slashing"), SkillAmt)
  18. end
  19. function proc(Caster, Target, Type, Dmg, DefAmt, SkillAmt)
  20. if Type == 18 then
  21. -- Inflicts 83 ranged damage on target
  22. ProcDamage(Caster, Target, "Quick Shot", 0, Dmg)
  23. end
  24. end
  25. function remove(Caster, Target)
  26. RemoveSkillBonus(Target)
  27. RemoveProc(Target)
  28. end