Core/Reputation: Implemented paragon reputation

Port From (https://github.com/TrinityCore/TrinityCore/commit/b01fba4bd9530213ee0c9547e09d1f16b3ce5d67)
This commit is contained in:
hondacrx
2021-06-05 20:35:26 -04:00
parent 6ab6fc81a5
commit 21d8fbee40
8 changed files with 148 additions and 13 deletions
+1 -2
View File
@@ -1152,8 +1152,7 @@ namespace Game
}
case ConditionTypes.ReputationRank:
{
FactionRecord factionEntry = CliDB.FactionStorage.LookupByKey(cond.ConditionValue1);
if (factionEntry == null)
if (!CliDB.FactionStorage.ContainsKey(cond.ConditionValue1))
{
Log.outError(LogFilter.Sql, "{0} has non existing faction ({1}), skipped.", cond.ToString(true), cond.ConditionValue1);
return false;