diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 69c5f378d..104b9546f 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -1070,12 +1070,12 @@ void Spell::DoAllEffectOnTarget(TargetInfo *target) caster->ProcDamageAndSpell(unit, procAttacker, procVictim, procEx, 0, m_attackType, m_spellInfo); } - // Call scripted function for AI if this spell is casted upon a creature (except pets) + // Call scripted function for AI if this spell is casted upon a creature if(unit->GetTypeId()==TYPEID_UNIT) { // cast at creature (or GO) quest objectives update at successful cast finished (+channel finished) - // ignore autorepeat/melee casts for speed (not exist quest for spells (hm... ) - if( m_caster->GetTypeId() == TYPEID_PLAYER && !IsAutoRepeat() && !IsNextMeleeSwingSpell() && !IsChannelActive() ) + // ignore pets or autorepeat/melee casts for speed (not exist quest for spells (hm... ) + if( !((Creature*)unit)->isPet() && m_caster->GetTypeId() == TYPEID_PLAYER && !IsAutoRepeat() && !IsNextMeleeSwingSpell() && !IsChannelActive() ) ((Player*)m_caster)->CastedCreatureOrGO(unit->GetEntry(),unit->GetGUID(),m_spellInfo->Id); if(((Creature*)unit)->AI()) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 34f9c0976..dc3c8aa32 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7586" + #define REVISION_NR "7587" #endif // __REVISION_NR_H__