[Bug Fix] Correct (probably) unintended bitwise AND instead of logical AND (#2239)

This commit is contained in:
Quintinon 2022-06-01 18:17:39 -07:00 committed by GitHub
parent a00f086bb8
commit be1772d464
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4598,7 +4598,7 @@ bool Mob::TrySpellTrigger(Mob *target, uint32 spell_id, int effect)
SpellFinished(spells[spell_id].limit_value[effect_slot], target, EQ::spells::CastingSlot::Item, 0, -1, spells[spells[spell_id].limit_value[effect_slot]].resist_difficulty);
return true;
}
else if (IsClient() & spells[spell_id].effect_id[effect_slot] == SE_Chance_Best_in_Spell_Grp) {
else if (IsClient() && spells[spell_id].effect_id[effect_slot] == SE_Chance_Best_in_Spell_Grp) {
uint32 best_spell_id = CastToClient()->GetHighestScribedSpellinSpellGroup(spells[spell_id].limit_value[effect_slot]);
if (IsValidSpell(best_spell_id)) {
SpellFinished(best_spell_id, target, EQ::spells::CastingSlot::Item, 0, -1, spells[best_spell_id].resist_difficulty);