mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
*Move most reputation/force faction reaction code to new ReputationMgr. Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
@@ -5594,12 +5594,10 @@ bool ChatHandler::HandleQuestComplete(const char* args)
|
||||
if(uint32 repFaction = pQuest->GetRepObjectiveFaction())
|
||||
{
|
||||
uint32 repValue = pQuest->GetRepObjectiveValue();
|
||||
uint32 curRep = player->GetReputation(repFaction);
|
||||
uint32 curRep = player->GetReputationMgr().GetReputation(repFaction);
|
||||
if(curRep < repValue)
|
||||
{
|
||||
FactionEntry const *factionEntry = sFactionStore.LookupEntry(repFaction);
|
||||
player->SetFactionReputation(factionEntry,repValue);
|
||||
}
|
||||
if(FactionEntry const *factionEntry = sFactionStore.LookupEntry(repFaction))
|
||||
player->GetReputationMgr().SetReputation(factionEntry,repValue);
|
||||
}
|
||||
|
||||
// If the quest requires money
|
||||
|
||||
Reference in New Issue
Block a user