ForwardCharge.lua 760 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Guardian/ForwardCharge.lua
  3. Script Author : John Adams
  4. Script Date : 2013.11.22 06:11:46
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, Stats, DefSkills, SkillAmt)
  9. AddSpellBonus(Target, 0, Stats)
  10. -- Increases Slashing, Piercing and Crushing of caster.
  11. AddSkillBonus(Target, GetSkillIDByName("Slashing"), SkillAmt)
  12. AddSkillBonus(Target, GetSkillIDByName("Piercing"), SkillAmt)
  13. AddSkillBonus(Target, GetSkillIDByName("Crushing"), SkillAmt)
  14. -- Decreases Defense of caster by 1.8
  15. AddSkillBonus(Target, GetSkillIDByName("Defense"), DefSkills)
  16. end
  17. function remove(Caster, Target)
  18. RemoveSkillBonus(Target)
  19. RemoveSpellBonus(Target)
  20. end