fix(Core/Threat): Melee creatures should only target units they can attack when rooted (#24526)

This commit is contained in:
Gultask
2026-02-06 18:07:27 -03:00
committed by GitHub
parent 5949d54f0e
commit cda6e619d0
3 changed files with 4 additions and 5 deletions

View File

@@ -254,6 +254,7 @@ public:
bool CanAIAttack(Unit const* victim) const override
{
// Used for Magma Blast handling to force EnterEvadeMode if there are no melee targets
return me->IsWithinMeleeRange(victim);
}

View File

@@ -85,11 +85,6 @@ struct boss_murmur : public BossAI
}, 3600ms, 10900ms, GROUP_OOC_CAST);
}
bool CanAIAttack(Unit const* victim) const override
{
return me->IsWithinMeleeRange(victim);
}
void EnterEvadeMode(EvadeReason why) override
{
if (me->GetThreatMgr().GetThreatList().empty())