Core/GameObject: Mark some pvp related gameobjects as active

Port From (https://github.com/TrinityCore/TrinityCore/commit/1336370b4583400abb93d6e306814b05f3c7553b)
This commit is contained in:
hondacrx
2023-09-14 04:38:38 -04:00
parent ac8086eda2
commit 06eed955de
@@ -324,6 +324,12 @@ namespace Game.Entities
break;
case GameObjectTypes.NewFlag:
m_goTypeImpl = new GameObjectType.NewFlag(this);
if (map.Instanceable())
SetActive(true);
break;
case GameObjectTypes.NewFlagDrop:
if (map.Instanceable())
SetActive(true);
break;
case GameObjectTypes.PhaseableMo:
RemoveFlag((GameObjectFlags)0xF00);
@@ -335,6 +341,8 @@ namespace Game.Entities
m_goValue.CapturePoint.LastTeamCapture = TeamId.Neutral;
m_goValue.CapturePoint.State = BattlegroundCapturePointState.Neutral;
UpdateCapturePoint();
if (map.Instanceable())
SetActive(true);
break;
default:
SetGoAnimProgress(animProgress);