Dynamic Creature/Go spawning

Port From (https://github.com/TrinityCore/TrinityCore/commit/03b125e6d1947258316c931499746696a95aded2)
This commit is contained in:
hondacrx
2020-08-23 21:52:32 -04:00
parent 8fc9c45d50
commit 15ae7a7c66
45 changed files with 3925 additions and 1963 deletions
+3 -3
View File
@@ -1328,7 +1328,7 @@ namespace Game
CreatureData creatureData = Global.ObjectMgr.GetCreatureData(cond.ConditionValue3);
if (creatureData != null)
{
if (cond.ConditionValue2 != 0 && creatureData.id != cond.ConditionValue2)
if (cond.ConditionValue2 != 0 && creatureData.Id != cond.ConditionValue2)
{
Log.outError(LogFilter.Sql, "{0} has guid {1} set but does not match creature entry ({1}), skipped.", cond.ToString(true), cond.ConditionValue3, cond.ConditionValue2);
return false;
@@ -1349,10 +1349,10 @@ namespace Game
}
if (cond.ConditionValue3 != 0)
{
GameObjectData goData = Global.ObjectMgr.GetGOData(cond.ConditionValue3);
GameObjectData goData = Global.ObjectMgr.GetGameObjectData(cond.ConditionValue3);
if (goData != null)
{
if (cond.ConditionValue2 != 0 && goData.id != cond.ConditionValue2)
if (cond.ConditionValue2 != 0 && goData.Id != cond.ConditionValue2)
{
Log.outError(LogFilter.Sql, "{0} has guid {1} set but does not match gameobject entry ({1}), skipped.", cond.ToString(true), cond.ConditionValue3, cond.ConditionValue2);
return false;