mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 01:37:05 +00:00
[11219] Allow work SPELL_EFFECT_PERSISTENT_AREA_AURA with 0/18 only target modes
This commit is contained in:
parent
4dd87bd468
commit
8f3d97d955
2 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue