mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 07:37:02 +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)
|
if(m_spellInfo->EffectImplicitTargetA[j] == TARGET_PET)
|
||||||
{
|
{
|
||||||
target = m_caster->GetPet();
|
if(!m_caster->GetPet())
|
||||||
if(!target)
|
|
||||||
{
|
{
|
||||||
if(m_triggeredByAuraSpell) // not report pet not existence for triggered spells
|
if(m_triggeredByAuraSpell) // not report pet not existence for triggered spells
|
||||||
return SPELL_FAILED_DONT_REPORT;
|
return SPELL_FAILED_DONT_REPORT;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11477"
|
#define REVISION_NR "11478"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue