Jump to content

[9733][fix] Replenishment in arena


Guest Ceris

Recommended Posts

What bug does the patch fix? What features does the patch add?

In arena, only caster should benefit from replenishment buff

from http://www.wowwiki.com/Replenishment

Hotfix (2009-04-24): "We are making a hotfix (any minute now probably) so that Replenishment in Arenas will only affect the character and not the whole team. It will continue to function as it does currently outside of Arenas.

For which repository revision was the patch created?

[9728]

Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

couldnt find any

Who has been writing this patch? Please include either forum user names or email addresses.

me

diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index b0acd37..5f68fd4 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -1676,7 +1676,13 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
        case TARGET_ALL_RAID_AROUND_CASTER:
        {
            if(m_spellInfo->Id == 57669)                    // Replenishment (special target selection)
-                FillRaidOrPartyManaPriorityTargets(targetUnitMap, m_caster, m_caster, radius, 10, true, false, true);
+            {
+                // in arena, target should be only caster
+                if(m_caster->GetMap()->IsBattleArena())
+                    targetUnitMap.push_back(m_caster);
+                else
+                    FillRaidOrPartyManaPriorityTargets(targetUnitMap, m_caster, m_caster, radius, 10, true, false, true);
+            }
            else if (m_spellInfo->Id==52759)                // Ancestral Awakening (special target selection)
                FillRaidOrPartyHealthPriorityTargets(targetUnitMap, m_caster, m_caster, radius, 1, true, false, true);
            else

Link to comment
Share on other sites

×
×
  • 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