From 6101b5d4b5014af2df33363b45a3923fffea2dd4 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 26 Nov 2008 12:45:13 -0600 Subject: *Fix the bug that pets cast damage spells on self. However, this may not be the correct way to fix it. Thank TheGriffon for pointing out the mistake. --HG-- branch : trunk --- src/game/Spell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 0999862f74f..5e36ad5dc26 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -4169,7 +4169,8 @@ int16 Spell::PetCanCast(Unit* target) duelvsplayertar |= (m_spellInfo->EffectImplicitTargetA[j] == TARGET_DUELVSPLAYER); } // AoE spells have the caster as their target - if(m_caster->IsFriendlyTo(target) && m_caster != target && !duelvsplayertar) + // AOE spells should not have target + if(m_caster->IsFriendlyTo(target) /*&& m_caster != target*/ && !duelvsplayertar) { return SPELL_FAILED_BAD_TARGETS; } -- cgit v1.2.3