From be1772d464ccba77d3520fa71f92597e06cb90fc Mon Sep 17 00:00:00 2001 From: Quintinon Date: Wed, 1 Jun 2022 18:17:39 -0700 Subject: [PATCH] [Bug Fix] Correct (probably) unintended bitwise AND instead of logical AND (#2239) --- zone/mob.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/mob.cpp b/zone/mob.cpp index 6d127af32..a3739866d 100644 --- a/zone/mob.cpp +++ b/zone/mob.cpp @@ -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);