*Implement RepRewardRate for spells.
--HG-- branch : trunk
This commit is contained in:
1 parent
6bb1c8f3f9
commit
dd8d6701b8
4 files changed
+7
-14
No files matched your search
@@ -7024,6 +7024,11 @@ void Spell::EffectReputation(uint32 i)
|
||||
if (!factionEntry)
|
||||
return;
|
||||
|
||||
if (RepRewardRate const * repData = objmgr.GetRepRewardRate(faction_id))
|
||||
{
|
||||
rep_change = (float)rep_change * repData->spell_rate;
|
||||
}
|
||||
|
||||
_player->GetReputationMgr().ModifyReputation(factionEntry, rep_change);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user