[11478] Prevent overwrite main target at spell cast check for TARGET_PET

I also not find cases when first effect (safe mostly case) need like overwrite.
If some pet related spells stop work after commit please report.
This commit is contained in:
VladimirMangos 2011-05-12 21:49:52 +04:00
parent 7e79c611ec
commit 116b053be8
2 changed files with 2 additions and 3 deletions

View file

@ -4632,8 +4632,7 @@ SpellCastResult Spell::CheckCast(bool strict)
{
if(m_spellInfo->EffectImplicitTargetA[j] == TARGET_PET)
{
target = m_caster->GetPet();
if(!target)
if(!m_caster->GetPet())
{
if(m_triggeredByAuraSpell) // not report pet not existence for triggered spells
return SPELL_FAILED_DONT_REPORT;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11477"
#define REVISION_NR "11478"
#endif // __REVISION_NR_H__