Skip to content

Commit

Permalink
[11219] Allow work SPELL_EFFECT_PERSISTENT_AREA_AURA with 0/18 only t…
Browse files Browse the repository at this point in the history
…arget modes
  • Loading branch information
VladimirMangos committed Mar 5, 2011
1 parent f8deb56 commit 5108587
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/game/Spell.cpp
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11218"
#define REVISION_NR "11219"
#endif // __REVISION_NR_H__

0 comments on commit 5108587

Please sign in to comment.