Core/Entities: Extended SpawnMask to 64 bit
This commit is contained in:
@@ -278,7 +278,7 @@ namespace Game.Conditions
|
||||
condMeets = player.HasTitle(ConditionValue1);
|
||||
break;
|
||||
case ConditionTypes.Spawnmask:
|
||||
condMeets = Convert.ToBoolean((1 << (int)obj.GetMap().GetSpawnMode()) & ConditionValue1);
|
||||
condMeets = Convert.ToBoolean((1ul << (int)obj.GetMap().GetSpawnMode()) & ConditionValue1);
|
||||
break;
|
||||
case ConditionTypes.UnitState:
|
||||
if (unit != null)
|
||||
|
||||
@@ -1490,7 +1490,8 @@ namespace Game
|
||||
}
|
||||
case ConditionTypes.Spawnmask:
|
||||
{
|
||||
if (cond.ConditionValue1 > (uint)SpawnMask.RaidAll)
|
||||
// @todo: ConditionValue need to be extended to uint64
|
||||
if ((ulong)cond.ConditionValue1 > 1ul << (int)SpawnMask.RaidAll)
|
||||
{
|
||||
Log.outError(LogFilter.Sql, "{0} has non existing SpawnMask in value1 ({1}), skipped.", cond.ToString(true), cond.ConditionValue1);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user