Jump to content

[patch][6962] PVP problem (everyone blue)


Auntie Mangos

Recommended Posts

  • 38 years later...

- 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

Link to comment
Share on other sites

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