aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXanadu <none@none>2010-06-18 16:21:23 +0200
committerXanadu <none@none>2010-06-18 16:21:23 +0200
commit9cd4e4289c8ec58d2074f41907c39231bc085f48 (patch)
treed7e0f3fd046f167644936d5259084cff2c17c360 /src
parentc2cdc9994e489b8332fa0f167dd0141c167ef090 (diff)
In arenas Replenishment should only affect the caster.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Spell.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index e7901de1a2d..cdc4cf2a3d5 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -2431,6 +2431,13 @@ void Spell::SelectEffectTargets(uint32 i, uint32 cur)
power = POWER_HEALTH;
break;
case 57669: // Replenishment
+ // In arenas Replenishment may only affect the caster
+ if (m_caster->GetTypeId() == TYPEID_PLAYER && m_caster->ToPlayer()->InArena())
+ {
+ unitList.clear();
+ unitList.push_back(m_caster);
+ break;
+ }
maxSize = 10;
power = POWER_MANA;
break;