Skip to content

Commit 44da1a8

Browse files
author
Rochet2
committed
Merge TrinityCore 3.3.5 to ElunaTrinityWotlk [skip ci]
2 parents e526657 + 8824889 commit 44da1a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server/game/Spells/Spell.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2200,7 +2200,8 @@ void Spell::AddUnitTarget(Unit* target, uint32 effectMask, bool checkIfValid /*=
22002200
Unit* unitCaster = ASSERT_NOTNULL(m_caster->ToUnit());
22012201

22022202
// Calculate reflected spell result on caster
2203-
if (m_spellInfo->CheckTarget(target, unitCaster, implicit) == SPELL_CAST_OK)
2203+
SpellCastResult castResult = m_spellInfo->CheckTarget(target, unitCaster, implicit);
2204+
if (castResult == SPELL_CAST_OK || castResult == SPELL_FAILED_TARGET_AURASTATE)
22042205
targetInfo.ReflectResult = unitCaster->SpellHitResult(unitCaster, m_spellInfo, false); // can't reflect twice
22052206
else
22062207
targetInfo.ReflectResult = SPELL_MISS_IMMUNE;

0 commit comments

Comments
 (0)