- this fixes the problem added in 303 that some players are blue permanently and cannot attack while others can.
- for rev 6944
- as far as i know there was no bug report yet
- patch be me (False.Genesis / ProjectEden)
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 75deff4..73a09e3 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -6292,12 +6292,14 @@ void Player::UpdateZone(uint32 newZone)
if(zone->flags & AREA_FLAG_SANCTUARY) // in sanctuary
{
SetFlag(PLAYER_FLAGS, PLAYER_FLAGS_SANCTUARY);
+ SetByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_SANCTUARY );
if(sWorld.IsFFAPvPRealm())
RemoveFlag(PLAYER_FLAGS,PLAYER_FLAGS_FFA_PVP);
}
else
{
RemoveFlag(PLAYER_FLAGS, PLAYER_FLAGS_SANCTUARY);
+ RemoveByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_SANCTUARY );
}
if(zone->flags & AREA_FLAG_CAPITAL) // in capital city