[11219] Allow work SPELL_EFFECT_PERSISTENT_AREA_AURA with 0/18 only target modes

This commit is contained in:
VladimirMangos 2011-03-05 22:58:52 +03:00
parent 4dd87bd468
commit 8f3d97d955
2 changed files with 5 additions and 1 deletions

View file

@ -2643,6 +2643,10 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
case SPELL_EFFECT_SKILL:
targetUnitMap.push_back(m_caster);
break;
case SPELL_EFFECT_PERSISTENT_AREA_AURA:
if(Unit* currentTarget = m_targets.getUnitTarget())
m_targets.setDestination(currentTarget->GetPositionX(), currentTarget->GetPositionY(), currentTarget->GetPositionZ());
break;
case SPELL_EFFECT_LEARN_PET_SPELL:
if (Pet* pet = m_caster->GetPet())
targetUnitMap.push_back(pet);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11218"
#define REVISION_NR "11219"
#endif // __REVISION_NR_H__