mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
[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:
parent
fa3a5c7a72
commit
844efa7e20
@ -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,9 +3039,9 @@ 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: {
|
||||||
@ -4478,9 +4479,9 @@ 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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user