Core/ConditionMgr: only send special error msg if condition failed

--HG--
branch : trunk
This commit is contained in:
Rat
2010-09-21 23:30:37 +02:00
parent d8ddf38453
commit 8b5369ff3f

View File

@@ -272,7 +272,7 @@ bool ConditionMgr::IsPlayerMeetToConditions(Player* player, ConditionList condit
sLog.outDebug("ConditionMgr::IsPlayerMeetToConditions");
bool result = IsPlayerMeetToConditionList(player, conditions, targetOverride);
if (player && player->m_ConditionErrorMsgId && player->GetSession())
if (player && player->m_ConditionErrorMsgId && player->GetSession() && !result)
player->GetSession()->SendNotification(player->m_ConditionErrorMsgId);//m_ConditionErrorMsgId is set only if a condition was not met
return result;