[Rule] Added rule to disable SPA 173 from making player immune to enrage. (#1897)

* immune enrage rule

* [Rule] Added rule to disable SPA 173 from making player immune to enrage.

spelling oops
This commit is contained in:
KayenEQ
2021-12-23 15:21:46 -05:00
committed by GitHub
parent c79fbb99aa
commit 652ea89dea
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -432,7 +432,11 @@ bool Mob::AvoidDamage(Mob *other, DamageHitInfo &hit)
}
// riposte -- it may seem crazy, but if the attacker has SPA 173 on them, they are immune to Ripo
bool ImmuneRipo = attacker->aabonuses.RiposteChance || attacker->spellbonuses.RiposteChance || attacker->itembonuses.RiposteChance || attacker->IsEnraged();
bool ImmuneRipo = false;
if (RuleB(Combat, ImmuneToEnrageFromRiposteSpellEffect)) {
ImmuneRipo = attacker->aabonuses.RiposteChance || attacker->spellbonuses.RiposteChance || attacker->itembonuses.RiposteChance || attacker->IsEnraged();
}
// Need to check if we have something in MainHand to actually attack with (or fists)
if (hit.hand != EQ::invslot::slotRange && (CanThisClassRiposte() || IsEnraged()) && InFront && !ImmuneRipo) {
if (IsEnraged()) {