Core/Conditions: Allow battleground maps to use CONDITION_INSTANCE_INFO
Port From (https://github.com/TrinityCore/TrinityCore/commit/f4e4e62aea79ff478dbc0f2bb2c5ab7f412a8a66)
This commit is contained in:
@@ -1784,13 +1784,19 @@ namespace Game
|
||||
case ConditionTypes.PetType:
|
||||
if (cond.ConditionValue1 >= (1 << (int)PetType.Max))
|
||||
{
|
||||
Log.outError(LogFilter.Sql, "{0} has non-existing pet type {1}, skipped.", cond.ToString(true), cond.ConditionValue1);
|
||||
Log.outError(LogFilter.Sql, $"{cond.ToString(true)} has non-existing pet type {cond.ConditionValue1}, skipped.");
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
case ConditionTypes.InstanceInfo:
|
||||
if (cond.ConditionValue3 == (uint)InstanceInfo.GuidData)
|
||||
{
|
||||
Log.outError(LogFilter.Sql, $"{cond.ToString(true)} has unsupported ConditionValue3 {cond.ConditionValue3} (INSTANCE_INFO_GUID_DATA), skipped.");
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
case ConditionTypes.Alive:
|
||||
case ConditionTypes.Areaid:
|
||||
case ConditionTypes.InstanceInfo:
|
||||
case ConditionTypes.TerrainSwap:
|
||||
case ConditionTypes.InWater:
|
||||
case ConditionTypes.Charmed:
|
||||
|
||||
Reference in New Issue
Block a user