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
+5 -5
View File
@@ -305,7 +305,7 @@ namespace Game.Maps
{
Creature minion = instance.GetCreature(guid);
if (minion)
if (minion.isWorldBoss() && minion.IsAlive())
if (minion.IsWorldBoss() && minion.IsAlive())
return false;
}
}
@@ -460,9 +460,9 @@ namespace Game.Maps
{
if (go.GetGoType() == GameObjectTypes.Door || go.GetGoType() == GameObjectTypes.Button)
{
if (go.getLootState() == LootState.Ready)
if (go.GetLootState() == LootState.Ready)
go.UseDoorOrButton(withRestoreTime, useAlternativeState);
else if (go.getLootState() == LootState.Activated)
else if (go.GetLootState() == LootState.Activated)
go.ResetDoorOrButton();
}
else
@@ -482,7 +482,7 @@ namespace Game.Maps
{
if (go.GetGoType() == GameObjectTypes.Door || go.GetGoType() == GameObjectTypes.Button)
{
if (go.getLootState() == LootState.Activated)
if (go.GetLootState() == LootState.Activated)
go.ResetDoorOrButton();
}
else
@@ -510,7 +510,7 @@ namespace Game.Maps
break;
}
if (go.isSpawned())
if (go.IsSpawned())
return;
go.SetRespawnTime((int)timeToDespawn);