Juggernaut.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Berserker/Juggernaut.lua
  3. Script Author : neatz09
  4. Script Date : 2020.09.03 11:09:55
  5. Script Purpose :
  6. :
  7. --]]
  8. -- If any of the following are true:
  9. -- This ability can only be used while berserk!
  10. -- This ability can only be used while berserk!
  11. function cast(Caster, Target, Crit, DefParry, Mit, CombatArts)
  12. Say(Caster, "Only can be used if in beserk not implemented.")
  13. -- Increases Crit Bonus of caster by 15.3%
  14. AddSpellBonus(Target, 657, Crit)
  15. -- Decreases Defense and Parry of caster by 2.2
  16. AddSkillBonus(Target, GetSkillIDByName("Defense"), DefParry)
  17. AddSkillBonus(Target, GetSkillIDByName("Parry"), DefParry)
  18. -- Decreases Mitigation of caster vs all damage by 3467
  19. AddSpellBonus(Target, 200, Mit)
  20. AddSpellBonus(Target, 201, Mit)
  21. AddSpellBonus(Target, 202, Mit)
  22. AddSpellBonus(Target, 203, Mit)
  23. -- All combat arts have their damage increased by 17%
  24. AddSpellBonus(Target, 703, CombatArts)
  25. end
  26. function remove(Caster, Target)
  27. RemoveSpellBonus(Target)
  28. RemoveSkillBonus(Target)
  29. end