summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/azerothshard/src/server/plugins/CrossFaction/CrossFaction.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/modules/azerothshard/src/server/plugins/CrossFaction/CrossFaction.cpp b/modules/azerothshard/src/server/plugins/CrossFaction/CrossFaction.cpp
index 084005a003..60104af879 100644
--- a/modules/azerothshard/src/server/plugins/CrossFaction/CrossFaction.cpp
+++ b/modules/azerothshard/src/server/plugins/CrossFaction/CrossFaction.cpp
@@ -11,7 +11,7 @@ void CrossFaction::DoForgetPlayersInBG(Battleground* pBattleGround, Player* play
{
for (Battleground::BattlegroundPlayerMap::const_iterator itr = pBattleGround->GetPlayers().begin(); itr != pBattleGround->GetPlayers().end(); ++itr)
{
- sLog->outError("player %s - Reset Cache", player->GetName().c_str());
+ sLog->outDebug(LOG_FILTER_CROSSFACTION, "player %s - Reset Cache", player->GetName().c_str());
// Here we invalidate players in the bg to the added player
WorldPacket data1(SMSG_INVALIDATE_PLAYER, 8);
data1 << itr->first;
@@ -40,21 +40,21 @@ void CrossFaction::SetFakeRaceAndMorph(Player* player)
m_FakeMorph[player->GetGUID()] = player->getGender() == GENDER_MALE ? FAKE_M_TAUREN : FAKE_F_TAUREN;
m_FakeRace[player->GetGUID()] = RACE_TAUREN;
- sLog->outError("player %s is a tauren !", player->GetName().c_str());
+ sLog->outDebug(LOG_FILTER_CROSSFACTION, "player %s is a tauren !", player->GetName().c_str());
}
else // HORDE
{
m_FakeMorph[player->GetGUID()] = FAKE_M_NELF;
m_FakeRace[player->GetGUID()] = RACE_NIGHTELF;
- sLog->outError("player %s is a nightelf !", player->GetName().c_str());
+ sLog->outDebug(LOG_FILTER_CROSSFACTION, "player %s is a nightelf !", player->GetName().c_str());
}
}
else
{
if (player->GetTeamId(true) == TEAM_HORDE) // HORDE standard
{
- sLog->outError("player %s is a human !", player->GetName().c_str());
+ sLog->outDebug(LOG_FILTER_CROSSFACTION, "player %s is a human !", player->GetName().c_str());
if (player->getGender() == GENDER_MALE)
{
@@ -71,7 +71,7 @@ void CrossFaction::SetFakeRaceAndMorph(Player* player)
}
else // ally standard
{
- sLog->outError("player %s is a bloodelf now!", player->GetName().c_str());
+ sLog->outDebug(LOG_FILTER_CROSSFACTION, "player %s is a bloodelf now!", player->GetName().c_str());
if (player->getGender() == GENDER_MALE)
{
@@ -162,7 +162,7 @@ void CrossFaction::UpdatePlayerTeam(Group* group, uint64 guid, bool reset /* = f
{
if (player->GetTeamId(true) != player->GetBgTeamId())
{
- sLog->outError("player %s switched faction!", player->GetName().c_str());
+ sLog->outDebug(LOG_FILTER_CROSSFACTION, "player %s switched faction!", player->GetName().c_str());
SetMorph(player, true); // setup the new display ID for the player, and the new race
player->setTeamId(player->GetBgTeamId());
@@ -176,7 +176,7 @@ void CrossFaction::UpdatePlayerTeam(Group* group, uint64 guid, bool reset /* = f
SetMorph(player, false); // reset morph if not in bg
- sLog->outError("reset morph for player", player->GetGUIDLow());
+ sLog->outDebug(LOG_FILTER_CROSSFACTION, "reset morph for player", player->GetGUIDLow());
// standard group
uint64 leaderGuid = group ? group->GetLeaderGUID() : player->GetGUID();
@@ -212,12 +212,12 @@ void CrossFaction::UpdatePlayerTeam(Group* group, uint64 guid, bool reset /* = f
player->setFaction(rEntry ? rEntry->FactionID : 0);
SetMorph(player, false); // reset morph if not in bg
- sLog->outError("reset morph done for player %u", player->GetGUIDLow());
+ sLog->outDebug(LOG_FILTER_CROSSFACTION, "reset morph done for player %u", player->GetGUIDLow());
sLog->outDebug(LOG_FILTER_CROSSFACTION, "Crossfaction: reset done for player %s", player->GetName().c_str());
}
else
- sLog->outError("CrossFaction: tried to update faction of player %u but he's not online... ", GUID_LOPART(guid));
+ sLog->outDebug(LOG_FILTER_CROSSFACTION, "CrossFaction: tried to update faction of player %u but he's not online... ", GUID_LOPART(guid));
}
void CrossFaction::UpdateGroupLeaderMap(uint64 leaderGuid, bool remove)
@@ -234,7 +234,7 @@ void CrossFaction::UpdateAllGroups()
if (Player* leader = ObjectAccessor::FindPlayer(itr->first))
if(Group* group = leader->GetGroup())
{
- sLog->outError("Updating faction for group of leader %s", leader->GetName().c_str());
+ sLog->outDebug(LOG_FILTER_CROSSFACTION, "Updating faction for group of leader %s", leader->GetName().c_str());
std::list<Group::MemberSlot> memberSlots = group->GetMemberSlots();
for (std::list<Group::MemberSlot>::iterator membersIterator = memberSlots.begin(); membersIterator != memberSlots.end(); membersIterator++)
@@ -436,7 +436,7 @@ public:
{
if (player && bg)
{
- sLog->outError("adding player %u to bg", player->GetGUID());
+ sLog->outDebug(LOG_FILTER_CROSSFACTION, "adding player %u to bg", player->GetGUID());
sCrossFaction->SetFakeRaceAndMorph(player); // set (re-set) fake race information
sCrossFaction->SetResetCache(player->GetGUID(), true);
@@ -449,7 +449,7 @@ public:
{
if (player && bg)
{
- sLog->outError("removing player %u from bg", player->GetGUID());
+ sLog->outDebug(LOG_FILTER_CROSSFACTION, "removing player %u from bg", player->GetGUID());
sCrossFaction->UpdatePlayerTeam(player->GetGroup(), player->GetGUID(), true);
sCrossFaction->SetMorph(player, false); // force reset any morph, then forget players in BG.
sCrossFaction->DoForgetPlayersInBG(bg, player);