fix(Scripts/Karazhan): Correct chess piece gossip faction check. (#18513)
Correct chess piece gossip faction check. Co-authored-by: 天鹿 <18535853+pklloveyou@users.noreply.github.com>
This commit is contained in:
parent
db7475f4f5
commit
a9b3f01579
1 changed files with 2 additions and 2 deletions
|
|
@ -1944,13 +1944,13 @@ struct npc_chesspiece : public ScriptedAI
|
|||
void sGossipHello(Player* player) override
|
||||
{
|
||||
uint32 chessPhase = _instance->GetData(DATA_CHESS_GAME_PHASE);
|
||||
if (_instance->GetData(DATA_CHESS_EVENT) == TEAM_ALLIANCE && me->GetFaction() != CHESS_FACTION_ALLIANCE && chessPhase < CHESS_PHASE_PVE_FINISHED)
|
||||
if (_instance->GetData(CHESS_EVENT_TEAM) == TEAM_ALLIANCE && me->GetFaction() != CHESS_FACTION_ALLIANCE && chessPhase < CHESS_PHASE_PVE_FINISHED)
|
||||
{
|
||||
SendGossipMenuFor(player, player->GetGossipTextId(me), me->GetGUID());
|
||||
return;
|
||||
}
|
||||
|
||||
if (_instance->GetData(DATA_CHESS_EVENT) == TEAM_HORDE && me->GetFaction() != CHESS_FACTION_HORDE && chessPhase < CHESS_PHASE_PVE_FINISHED)
|
||||
if (_instance->GetData(CHESS_EVENT_TEAM) == TEAM_HORDE && me->GetFaction() != CHESS_FACTION_HORDE && chessPhase < CHESS_PHASE_PVE_FINISHED)
|
||||
{
|
||||
SendGossipMenuFor(player, player->GetGossipTextId(me), me->GetGUID());
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue