Skip to content

Commit

Permalink
fix: prey oldprotocol (opentibiabr#2757)
Browse files Browse the repository at this point in the history
  • Loading branch information
luanluciano93 authored Jul 18, 2024
1 parent f153224 commit 7a1d624
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/server/network/protocol/protocolgame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4259,10 +4259,12 @@ void ProtocolGame::sendBasicData() {
msg.addByte(player->getVocation()->getClientId());

// Prey window
if (player->getVocation()->getId() == 0 && player->getGroup()->id < GROUP_TYPE_GAMEMASTER) {
msg.addByte(0);
} else {
msg.addByte(1); // has reached Main (allow player to open Prey window)
if (!oldProtocol) {
if (player->getVocation()->getId() == 0 && player->getGroup()->id < GROUP_TYPE_GAMEMASTER) {
msg.addByte(0);
} else {
msg.addByte(1); // has reached Main (allow player to open Prey window)
}
}

// Filter only valid ids
Expand Down

0 comments on commit 7a1d624

Please sign in to comment.