*Implement RepRewardRate for spells.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-07-27 02:25:22 +02:00
parent 6bb1c8f3f9
commit dd8d6701b8
4 changed files with 7 additions and 14 deletions
+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);
}
-8
View File
@@ -3836,14 +3836,6 @@ void SpellMgr::LoadSpellCustomAttr()
spellInfo->AttributesEx3 |= SPELL_ATTR_EX3_NO_INITIAL_AGGRO;
count++;
break;
case 61306: // Kirin Tor Commendation Badge
case 61308: // Wyrmrest Commendation Badge
case 61311: // Argent Crusade Commendation Badge
case 61312: // Ebon Blade Commendadtion Badge
case 69757: // Sons of Hodir Commendation Badge
spellInfo->EffectBasePoints[0] = 519; // Some suggest a global multiplier is used for rep gain
count++; // but basepoints * 1,3 hard coded in the tooltip says
break; // otherwise.
default:
break;
}