Jump to content

[FIX]Commendation Badges +30% reputation


Guest AuntieMangos

Recommended Posts

Revision: 9773

Patches: none

Bug-Reports: http://getmangos.eu/community/showthread.php?12683-%5BBUG%5D-Argent-Crusade-Commendation-Badge-spell-61311

Bug: the commendation badges in wintergrasp shoul gain reputation by 520points not only 400. this is the patch, maybe its just a hack in your opinion, but I didn't find another way to handle it in a more generic way

author: me

patch:

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 43c1ccd..86b6cf5 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -6704,6 +6704,16 @@ void Spell::EffectReputation(SpellEffectIndex eff_idx)
  int32 rep_change = m_currentBasePoints[eff_idx];

  uint32 faction_id = m_spellInfo->EffectMiscValue[eff_idx];
+  switch(m_spellInfo->Id)
+  {
+    case 69757:
+    case 61311:
+    case 61308:
+    case 61306: 
+    case 61312:
+      rep_change *= 1.3;
+      break;
+  }

  FactionEntry const* factionEntry = sFactionStore.LookupEntry(faction_id);

Link to comment
Share on other sites

  • 40 years later...
  • 1 month later...
  • 2 weeks later...
  • 1 month later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use