fix(Core/Entities): mobs called for help should check if can see and detect the enemy (#7493)

- Updates #7125
This commit is contained in:
UltraNix
2021-08-26 10:38:27 +02:00
committed by GitHub
parent 0afc189d4d
commit f23d42c0dd

View File

@@ -2233,6 +2233,12 @@ bool Creature::CanAssistTo(const Unit* u, const Unit* enemy, bool checkfaction /
if (!IsHostileTo(enemy))
return false;
// Check if can see the enemy
if (!CanSeeOrDetect(enemy))
{
return false;
}
return true;
}