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
+1 -4
View File
@@ -18,9 +18,6 @@
using Framework.Constants;
using Game.Entities;
using Game.Groups;
using Game.Maps;
using Game.Movement;
using Game.Scripting;
using Game.Spells;
using System;
using System.Collections.Generic;
@@ -1065,7 +1062,7 @@ namespace Game.AI
{
GetScript().OnInitialize(go);
// do not call respawn event if go is not spawned
if (go.isSpawned())
if (go.IsSpawned())
GetScript().ProcessEventsFor(SmartEvents.Respawn);
}