Some refactoring of code. and some cleanups

This commit is contained in:
hondacrx
2019-09-21 12:11:16 -04:00
parent 7c405230cc
commit 35c06c09fd
214 changed files with 1235 additions and 1341 deletions
@@ -18,7 +18,6 @@
using Framework.Constants;
using Framework.IO;
using Game;
using Game.AI;
using Game.Entities;
using Game.Maps;
using Game.Network.Packets;
@@ -1009,11 +1008,11 @@ namespace Scripts.Northrend.IcecrownCitadel
// note: "active" gameobjects do not block grid unloading
GameObject precipice = instance.GetGameObject(ArthasPrecipiceGUID);
if (precipice)
precipice.setActive(state == EncounterState.InProgress);
precipice.SetActive(state == EncounterState.InProgress);
GameObject platform = instance.GetGameObject(ArthasPlatformGUID);
if (platform)
platform.setActive(state == EncounterState.InProgress);
platform.SetActive(state == EncounterState.InProgress);
if (instance.IsHeroic())
{