9
3

KnightsStance.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Paladin/KnightsStance.lua
  3. Script Author : neatz09
  4. Script Date : 2019.11.09 01:11:29
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. function cast(Caster, Target, Phys, Sta, Avoid, OffSkill, DefSkill, Arcane, Armor)
  10. -- Reduces physical damage done to caster by 5%
  11. AddSpellBonus(Target, 200, Phys)
  12. Say(Caster, "Need % for Physical Mit. Using Stat 200 for now.")
  13. -- Increases STA of caster by 11.9
  14. AddSpellBonus(Target, 1, Sta)
  15. -- Adds 2.8% to base avoidance.
  16. AddSpellBonus(Target, 696, Avoid)
  17. -- Decreases Slashing, Piercing and Crushing of caster by 1.4
  18. AddSkillBonus(Target, GetSkillIDByName("Slashing"), OffSkill)
  19. AddSkillBonus(Target, GetSkillIDByName("Piercing"), OffSkill)
  20. AddSkillBonus(Target, GetSkillIDByName("Crushing"), OffSkill)
  21. -- Increases Defense and Aggression of caster by 1.6
  22. AddSkillBonus(Target, GetSkillIDByName("Defense"), DefSkill)
  23. AddSkillBonus(Target, GetSkillIDByName("Aggression"), DefSkill)
  24. -- Increases Mitigation of caster vs arcane damage by 138
  25. AddSpellBonus(Target, 203, Arcane)
  26. -- Increases the caster's effectiveness of worn armor vs physical damage by 15%
  27. AddSpellBonus(Target, 678, Armor)
  28. end
  29. function remove(Caster, Target)
  30. RemoveSpellBonus(Target)
  31. RemoveSkillBonus(Target)
  32. end