LucansPact.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Shadowknight/LucansPact.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.01.08 02:01:23
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, StaBonusAmt, AvdBonusAmt, OffSkillAmt, DefSkillAmt, ResistAmt)
  9. -- Reduces physical damage done to caster by 5%
  10. AddSpellBonus(Target, 313, 5) -- Not sure on this value (313)
  11. -- Increases STA of caster by 11.9
  12. AddSpellBonus(Target, 1, StaBonusAmt)
  13. -- Adds 2.8% to base avoidance.
  14. AddSpellBonus(Target, 696, AvdBonusAmt)
  15. -- Decreases Crushing, Piercing and Slashing of caster by 1.4
  16. AddSkillBonus(Target, GetSkillIDByName("Crushing"), OffSkillAmt)
  17. AddSkillBonus(Target, GetSkillIDByName("Piercing"), OffSkillAmt)
  18. AddSkillBonus(Target, GetSkillIDByName("Slashing"), OffSkillAmt)
  19. -- Increases Aggression and Defense of caster by 1.6
  20. AddSkillBonus(Target, GetSkillIDByName("Aggression"), DefSkillAmt)
  21. AddSkillBonus(Target, GetSkillIDByName("Defense"), DefSkillAmt)
  22. -- Increases Mitigation of caster vs noxious damage by 138
  23. AddSpellBonus(Target, 202, ResistAmt)
  24. -- Increases the caster's effectiveness of worn armor vs physical damage by 15%
  25. AddSpellBonus(Target, 678, 15)
  26. end
  27. function remove(Caster, Target)
  28. RemoveSpellBonus(Target)
  29. RemoveSkillBonus(Target)
  30. end