mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-30 13:47:23 +01:00
Core/Conditions: Added CONDITION_SOURCE_TYPE_PLAYER_CONDITION (#29832)
This commit is contained in:
@@ -1616,11 +1616,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
PlayerConditionEntry const* playerConditionEntry = sPlayerConditionStore.LookupEntry(playerConditionId);
|
||||
if (!playerConditionEntry)
|
||||
return false;
|
||||
|
||||
if (ConditionMgr::IsPlayerMeetingCondition(target, playerConditionEntry))
|
||||
if (ConditionMgr::IsPlayerMeetingCondition(target, playerConditionId))
|
||||
handler->PSendSysMessage("PlayerCondition %u met", playerConditionId);
|
||||
else
|
||||
handler->PSendSysMessage("PlayerCondition %u not met", playerConditionId);
|
||||
|
||||
Reference in New Issue
Block a user