Skip to content

Commit

Permalink
Scripts/Commands: Make the .modify reputation command only modify the…
Browse files Browse the repository at this point in the history
… specified reputation (ignore spillovers)

Patch by @ogeraisi
  • Loading branch information
Subv committed Apr 15, 2012
1 parent 3d8aaab commit c7eeb0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/scripts/Commands/cs_modify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ class modify_commandscript : public CommandScript
return false;
}

target->GetReputationMgr().SetReputation(factionEntry, amount);
target->GetReputationMgr().SetOneFactionReputation(factionEntry, amount);
handler->PSendSysMessage(LANG_COMMAND_MODIFY_REP, factionEntry->name[handler->GetSessionDbcLocale()], factionId,
handler->GetNameLink(target).c_str(), target->GetReputationMgr().GetReputation(factionEntry));
return true;
Expand Down

2 comments on commit c7eeb0b

@Subv
Copy link
Contributor Author

@Subv Subv commented on c7eeb0b Apr 15, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

closes #5752

@Expecto
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.