diff options
author | megamage <none@none> | 2008-11-26 12:45:13 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-11-26 12:45:13 -0600 |
commit | 6101b5d4b5014af2df33363b45a3923fffea2dd4 (patch) | |
tree | a86d05bea14ab5d4797a152186f368903996e950 | |
parent | b591c216594b688b88b9343a01d1a4684fa4e833 (diff) |
*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
-rw-r--r-- | src/game/Spell.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |