9
3

SurvivalInstincts.lua 927 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Scout/Predator/Ranger/SurvivalInstincts.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.10 07:03:07
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, Agi, Avoid, OffAmt, Parry, Def)
  9. -- Increases AGI of caster by 13.1
  10. AddSpellBonus(Target, 2, Agi)
  11. -- Adds 1.4% to base avoidance.
  12. AddSpellBonus(Target, 696, Avoid)
  13. -- Decreases Slashing and Piercing of caster by 13.8
  14. AddSkillBonus(Target, GetSkillIDByName("Slashing"), OffAmt)
  15. AddSkillBonus(Target, GetSkillIDByName("Piercing"), OffAmt)
  16. -- Increases Parry of caster by 7.3
  17. AddSkillBonus(Target, GetSkillIDByName("Parry"), Parry)
  18. -- Increases Defense of caster by 9.7
  19. AddSkillBonus(Target, GetSkillIDByName("Defense"), Def)
  20. end
  21. function remove(Caster, Target)
  22. RemoveSpellBonus(Target)
  23. RemoveSkillBonus(Target)
  24. end