fix(Core/Unit): fix AoE aggro and contested guard attack logic (#23935)

This commit is contained in:
sogladev 2025-11-29 06:49:01 +01:00 committed by GitHub
parent 1e4bf1bb6d
commit e6e6c6289e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 13 deletions

View file

@ -563,10 +563,6 @@ public:
if (!SpawnAssoc)
return;
// check if they're hostile
if (!(me->IsHostileTo(who) || who->IsHostileTo(me)))
return;
if (me->IsValidAttackTarget(who))
{
Player* playerTarget = who->ToPlayer();