[Cleanup] Breaks in wrong spot in cases in spell_effects.cpp (#3297)

* [Cleanup] Breaks in wrong spot in cases in spell_effects.cpp

# Notes
- These breaks were inside conditions, meaning the case wasn't always broken.

* Update spell_effects.cpp
This commit is contained in:
Alex King 2023-04-22 08:49:13 -04:00 committed by GitHub
parent fa3a5c7a72
commit 844efa7e20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1479,6 +1479,7 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
for (int x = EQ::textures::textureBegin; x <= EQ::textures::LastTintableTexture; x++) for (int x = EQ::textures::textureBegin; x <= EQ::textures::LastTintableTexture; x++)
caster->SendWearChange(x); caster->SendWearChange(x);
} }
break;
} }
case SE_WipeHateList: case SE_WipeHateList:
@ -3038,10 +3039,10 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
int shield_target_mitigation = spells[spell_id].limit_value[i] ? spells[spell_id].limit_value[i] : 50; int shield_target_mitigation = spells[spell_id].limit_value[i] ? spells[spell_id].limit_value[i] : 50;
int shielder_mitigation = spells[spell_id].max_value[i] ? spells[spell_id].limit_value[i] : 50; int shielder_mitigation = spells[spell_id].max_value[i] ? spells[spell_id].limit_value[i] : 50;
ShieldAbility(petowner->GetID(), 25, shield_duration, shield_target_mitigation, shielder_mitigation); ShieldAbility(petowner->GetID(), 25, shield_duration, shield_target_mitigation, shielder_mitigation);
}
}
break; break;
} }
}
}
case SE_Weapon_Stance: { case SE_Weapon_Stance: {
if (IsClient()) { if (IsClient()) {
@ -4478,10 +4479,10 @@ void Mob::BuffFadeBySlot(int slot, bool iRecalcBonuses)
if (flee_mode) { if (flee_mode) {
currently_fleeing = true; currently_fleeing = true;
CheckFlee(); CheckFlee();
}
}
break; break;
} }
}
}
case SE_BindSight: case SE_BindSight:
{ {
@ -4519,6 +4520,7 @@ void Mob::BuffFadeBySlot(int slot, bool iRecalcBonuses)
} }
CastToClient()->SetControlledMobId(0); CastToClient()->SetControlledMobId(0);
} }
break;
} }
case SE_Weapon_Stance: case SE_Weapon_Stance:
@ -5183,8 +5185,8 @@ int64 Mob::CalcAAFocus(focusType type, const AA::Rank &rank, uint16 spell_id)
value = 0; value = 0;
LimitFailure = true; LimitFailure = true;
} }
break;
} }
break;
case SE_FcSpellVulnerability: case SE_FcSpellVulnerability:
if (type == focusSpellVulnerability) { if (type == focusSpellVulnerability) {