Core/DataStores: Implemented checking PlayerCondition for future use

This commit is contained in:
Shauren
2016-01-03 00:40:18 +01:00
parent 1c7dde2b54
commit d9849fb87b
10 changed files with 692 additions and 1 deletions

View File

@@ -111,7 +111,12 @@ class ReputationMgr
ReputationRank const* GetForcedRankIfAny(FactionTemplateEntry const* factionTemplateEntry) const
{
ForcedReactions::const_iterator forceItr = _forcedReactions.find(factionTemplateEntry->Faction);
return GetForcedRankIfAny(factionTemplateEntry->Faction);
}
ReputationRank const* GetForcedRankIfAny(uint32 factionId) const
{
ForcedReactions::const_iterator forceItr = _forcedReactions.find(factionId);
return forceItr != _forcedReactions.end() ? &forceItr->second : NULL;
}