Skip to content

Commit

Permalink
Fix spawn spells with no target type.
Browse files Browse the repository at this point in the history
  • Loading branch information
ratkosrb committed Dec 18, 2023
1 parent 1047658 commit b98dff5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/game/Spells/Spell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ void Spell::FillTargetMap()
if (m_casterUnit)
{
if (IsAreaAuraEffect(m_spellInfo->Effect[i]) ||
m_spellInfo->Effect[i] == SPELL_EFFECT_SPAWN ||
m_spellInfo->Effect[i] == SPELL_EFFECT_LANGUAGE ||
m_spellInfo->Effect[i] == SPELL_EFFECT_QUEST_COMPLETE)
AddUnitTarget(m_casterUnit, SpellEffectIndex(i));
Expand Down

0 comments on commit b98dff5

Please sign in to comment.