*Implement RepRewardRate for spells.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2010-07-27 02:25:22 +02:00
1 parent 6bb1c8f3f9
commit dd8d6701b8
4 files changed
+7 -14

No files matched your search

+5
View File
@@ -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);
}