[9733] Make Replenishment only affect its caster in arena

Signed-off-by: Lightguard <Lightguard@tauri.hu>
This commit is contained in:
Ceris 2010-04-12 10:40:43 +02:00 committed by Lightguard
parent 6a50185cfd
commit 06378778e8
2 changed files with 8 additions and 2 deletions

View file

@ -1676,7 +1676,13 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
case TARGET_ALL_RAID_AROUND_CASTER: case TARGET_ALL_RAID_AROUND_CASTER:
{ {
if(m_spellInfo->Id == 57669) // Replenishment (special target selection) 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) else if (m_spellInfo->Id==52759) // Ancestral Awakening (special target selection)
FillRaidOrPartyHealthPriorityTargets(targetUnitMap, m_caster, m_caster, radius, 1, true, false, true); FillRaidOrPartyHealthPriorityTargets(targetUnitMap, m_caster, m_caster, radius, 1, true, false, true);
else else

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9732" #define REVISION_NR "9733"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__