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; break;
case GameObjectTypes.NewFlag: case GameObjectTypes.NewFlag:
m_goTypeImpl = new GameObjectType.NewFlag(this); m_goTypeImpl = new GameObjectType.NewFlag(this);
if (map.Instanceable())
SetActive(true);
break;
case GameObjectTypes.NewFlagDrop:
if (map.Instanceable())
SetActive(true);
break; break;
case GameObjectTypes.PhaseableMo: case GameObjectTypes.PhaseableMo:
RemoveFlag((GameObjectFlags)0xF00); RemoveFlag((GameObjectFlags)0xF00);
@@ -335,6 +341,8 @@ namespace Game.Entities
m_goValue.CapturePoint.LastTeamCapture = TeamId.Neutral; m_goValue.CapturePoint.LastTeamCapture = TeamId.Neutral;
m_goValue.CapturePoint.State = BattlegroundCapturePointState.Neutral; m_goValue.CapturePoint.State = BattlegroundCapturePointState.Neutral;
UpdateCapturePoint(); UpdateCapturePoint();
if (map.Instanceable())
SetActive(true);
break; break;
default: default:
SetGoAnimProgress(animProgress); SetGoAnimProgress(animProgress);