mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 01:37:05 +00:00
[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:
parent
7e79c611ec
commit
116b053be8
2 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue