mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
*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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user