Jump to content

Recommended Posts

  • 38 years later...
Posted

- 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

Posted
this is strange, i tested it multiple times and it worked just fine... did anyone else test this and can report his findings?

It's not working for me either, running on rev. 6985 opposing factions can fight, but the same faction cannot fight in arena locations.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use