Bruising.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : Spells/Fighter/Brawler/Bruiser/Bruising.lua
  3. Script Author : neatz09
  4. Script Date : 2020.01.24 11:01:59
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Caster will deflect 4.5% of incoming attacks.
  9. -- Increases Parry of caster by 5.9
  10. -- Increases Deflection, Slashing, Piercing, Crushing and Ranged of caster by 5.9
  11. -- Increases Mitigation of caster vs noxious damage by 396
  12. -- Increases the caster's effectiveness of worn armor vs physical damage by 13%
  13. -- On a melee hit this spell may cast Engulf on target of attack. Triggers about 1.0 times per minute.
  14. -- Inflicts 155 - 258 heat damage on target
  15. function cast(Caster, Target, Deflect, Parry, Skills, Nox, Armor, DmgType, MinVal, MaxVal)
  16. AddProc(Target, 3, 3)
  17. AddSpellBonus(Target, 670, Deflect)
  18. AddSkillBonus(Target, GetSkillIDByName("Parry"), Parry)
  19. AddSkillBonus(Target, GetSkillIDByName("Deflection"), Skills)
  20. AddSkillBonus(Target, GetSkillIDByName("Slashing"), Skills)
  21. AddSkillBonus(Target, GetSkillIDByName("Piercing"), Skills)
  22. AddSkillBonus(Target, GetSkillIDByName("Crushing"), Skills)
  23. AddSkillBonus(Target, GetSkillIDByName("Ranged"), Skills)
  24. AddSpellBonus(Target, 202, Nox)
  25. AddSpellBonus(Target, 678, Armor)
  26. end
  27. function proc(Caster, Target, Type, Deflect, Parry, Skills, Nox, Armor, DmgType, MinVal, MaxVal)
  28. if Type == 3 then
  29. ProcDamage(Caster, Target, "Engulf", DmgType, MinVal, MaxVal)
  30. end
  31. end
  32. function remove(Caster, Target)
  33. RemoveProc(Target)
  34. RemoveSpellBonus(Target)
  35. RemoveSkillBonus(Target)
  36. end