Core/Unit: UNIT_FLAG renames
Port From (https://github.com/TrinityCore/TrinityCore/commit/f1ac141f25500a0f6ffd3c32b1185de2d9f9c940)
This commit is contained in:
@@ -4543,13 +4543,13 @@ namespace Game.Spells
|
||||
{
|
||||
target.SetFaction((uint)GetMiscValue());
|
||||
if (target.IsTypeId(TypeId.Player))
|
||||
target.RemoveUnitFlag(UnitFlags.PvpAttackable);
|
||||
target.RemoveUnitFlag(UnitFlags.PlayerControlled);
|
||||
}
|
||||
else
|
||||
{
|
||||
target.RestoreFaction();
|
||||
if (target.IsTypeId(TypeId.Player))
|
||||
target.AddUnitFlag(UnitFlags.PvpAttackable);
|
||||
target.AddUnitFlag(UnitFlags.PlayerControlled);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user