9
3

AbandonedFury.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Berserker/AbandonedFury.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.29 11:10:17
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Decreases Defense of caster by 1.8
  9. -- Increases Slashing, Piercing and Crushing of caster by 2.4
  10. -- The caster may not benefit from any stoneskin, death prevent, or 100% avoidance abilities while under this effect and for 5 seconds after the effect has been removed.
  11. -- Increases the amount of Potency gained by 20%
  12. -- On a melee hit this spell may cast Furious Assault on target of attack. Triggers about 2.0 times per minute.
  13. -- Inflicts 5 - 9 melee damage on target encounter
  14. function cast(Caster, Target, Def, OffSkills, DmgType, MinVal, MaxVal)
  15. Say(Caster, "ProcDamage needs an override to hit encounter")
  16. Say(Caster, "Fervor and stoneskin/death/avoid component not implemented.")
  17. AddSkillBonus(Target, GetSkillIDByName("Defense"), Def)
  18. AddSkillBonus(Target, GetSkillIDByName("Slashing"), OffSkills)
  19. AddSkillBonus(Target, GetSkillIDByName("Crushing"), OffSkills)
  20. AddSkillBonus(Target, GetSkillIDByName("Piercing"), OffSkills)
  21. AddProc(Target, 3, 10)
  22. end
  23. function proc(Caster, Target, Type, Def, Offskills, DmgType, MinVal, MaxVal)
  24. if Type == 3 then
  25. ProcDamage(Caster, Target, "Furious Assault", DmgType, DmgMin, DmgType)
  26. end
  27. end
  28. function remove(Caster, Target)
  29. RemoveSkillBonus(Target)
  30. RemoveProc(Target)
  31. end