From 320c880e8e9a2ae8ed24e1d78452c2ff0be0de98 Mon Sep 17 00:00:00 2001 From: mik1893 Date: Sun, 31 Jul 2016 10:32:08 +0100 Subject: [PATCH] small correction to teams in guildhouses --- modules/azerothshard/src/server/plugins/npc_guildhouse.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/azerothshard/src/server/plugins/npc_guildhouse.cpp b/modules/azerothshard/src/server/plugins/npc_guildhouse.cpp index 7dff85baa7..9c9fe14244 100644 --- a/modules/azerothshard/src/server/plugins/npc_guildhouse.cpp +++ b/modules/azerothshard/src/server/plugins/npc_guildhouse.cpp @@ -192,7 +192,7 @@ class npc_guild_master : public CreatureScript guildsize = 20000; result = WorldDatabase.PQuery("SELECT `id`, `comment`, `price` FROM `guildhouses` WHERE `guildId` = 0 AND (`faction` = 3 OR `faction` = %u) AND `id` > %u AND `minguildsize` <= %u ORDER BY `id` ASC LIMIT %u", - (player->GetTeamId() == TEAM_HORDE)?1:0, showFromId, guildsize, GOSSIP_COUNT_MAX); + (player->GetTeamId(true) == TEAM_HORDE)?1:0, showFromId, guildsize, GOSSIP_COUNT_MAX); if (result) { @@ -801,7 +801,7 @@ class npc_buffnpc : public CreatureScript //player->SetTaxiCheater(true); // Main Menu for Alliance - if ( player->GetTeamId() == ALLIANCE ) + if ( player->GetTeamId(true) == TEAM_ALLIANCE ) { player->ADD_GOSSIP_ITEM( 5, "Remove Res Sickness" , GOSSIP_SENDER_MAIN, 1180); //player->ADD_GOSSIP_ITEM( 5, "Give me gold" , GOSSIP_SENDER_MAIN, 1185); @@ -973,7 +973,7 @@ class npc_portal : public CreatureScript player->ADD_GOSSIP_ITEM( 5, "Teleport Wintergrasp" , GOSSIP_SENDER_MAIN, 1100); // Main Menu for Alliance - if ( player->GetTeamId() == TEAM_ALLIANCE ) + if ( player->GetTeamId(true) == TEAM_ALLIANCE ) { player->ADD_GOSSIP_ITEM( 5, "Teleport Stormwind" , GOSSIP_SENDER_MAIN, 1015); player->ADD_GOSSIP_ITEM( 5, "Teleport Ironforge" , GOSSIP_SENDER_MAIN, 1020);