mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 07:48:02 +00:00
fix(Core/Creature): Disable periodic call for assistance on minions from instances (#7650)
This commit is contained in:
@@ -3328,12 +3328,14 @@ bool Creature::CanPeriodicallyCallForAssistance() const
|
||||
if (!IsInCombat())
|
||||
return false;
|
||||
|
||||
// Unable to call for assistance
|
||||
if (HasUnitState(UNIT_STATE_DIED | UNIT_STATE_POSSESSED))
|
||||
return false;
|
||||
|
||||
if (!CanHaveThreatList())
|
||||
return false;
|
||||
|
||||
if (IsSummon() && GetMap()->Instanceable())
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user