Some cleanups. (might break build for scripts as they are a WIP)
This commit is contained in:
@@ -1155,7 +1155,7 @@ namespace Game
|
||||
{
|
||||
GameObject go = GameObject.CreateGameObjectFromDB(guid, map, false);
|
||||
// @todo find out when it is add to map
|
||||
if (go)
|
||||
if (go != null)
|
||||
{
|
||||
// @todo find out when it is add to map
|
||||
if (go.IsSpawnedByDefault())
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Game
|
||||
{
|
||||
public static void Trigger(uint gameEventId, WorldObject source, WorldObject target)
|
||||
{
|
||||
Cypher.Assert(source || target, "At least one of [source] or [target] must be provided");
|
||||
Cypher.Assert(source != null || target != null, "At least one of [source] or [target] must be provided");
|
||||
|
||||
WorldObject refForMapAndZoneScript = source ?? target;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user