Fixes build. Scripts are still being updated.

This commit is contained in:
hondacrx
2024-01-24 12:02:23 -05:00
parent 1c6563718e
commit 6f4b7ddd9d
51 changed files with 268 additions and 268 deletions
@@ -322,12 +322,12 @@ namespace Scripts.EasternKingdoms.BlackrockMountain.BlackrockDepths
if (GhostKillCount < MiscConst.TombOfSevenBossNum && !TombBossGUIDs[TombEventCounter].IsEmpty())
{
Creature boss = instance.GetCreature(TombBossGUIDs[TombEventCounter]);
if (boss)
if (boss != null)
{
boss.SetFaction((uint)FactionTemplates.DarkIronDwarves);
boss.SetImmuneToPC(false);
Unit target = boss.SelectNearestTarget(500);
if (target)
if (target != null)
boss.GetAI().AttackStart(target);
}
}
@@ -340,7 +340,7 @@ namespace Scripts.EasternKingdoms.BlackrockMountain.BlackrockDepths
for (byte i = 0; i < MiscConst.TombOfSevenBossNum; ++i)
{
Creature boss = instance.GetCreature(TombBossGUIDs[i]);
if (boss)
if (boss != null)
{
if (!boss.IsAlive())
boss.Respawn();
@@ -388,7 +388,7 @@ namespace Scripts.EasternKingdoms.BlackrockMountain.BlackrockDepths
for (byte i = 0; i < MiscConst.TombOfSevenBossNum; ++i)
{
Creature boss = instance.GetCreature(TombBossGUIDs[i]);
if (boss)
if (boss != null)
{
if (!boss.IsAlive())
{