Skip to content

Commit

Permalink
NPCBots: Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
trickerer committed May 22, 2024
1 parent 15385ee commit 625ee27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/AI/NpcBots/bot_shaman_ai.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ class shaman_bot : public CreatureScript
static const std::array<uint32, 3> TremorMechanics = { MECHANIC_FEAR, MECHANIC_CHARM, MECHANIC_SLEEP };
static const auto is_tremor_effect = [](SpellEffectInfo const& effect) { return effect.IsAura(SPELL_AURA_MOD_FEAR) || effect.IsAura(SPELL_AURA_MOD_CHARM); };
if (std::find(TremorMechanics.cbegin(), TremorMechanics.cend(), vspellInfo->Mechanic) != TremorMechanics.cend() ||
std::any_of(vspellInfo->Effects.cbegin(), vspellInfo->Effects.cend(), is_tremor_effect))
std::any_of(vspellInfo->_effects.cbegin(), vspellInfo->_effects.cend(), is_tremor_effect))
{
canTremor = true;
}
Expand Down

0 comments on commit 625ee27

Please sign in to comment.