From 635d132ea8b99f85bde5e1bdf4eca8cc4a60406c Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Mon, 2 May 2011 23:55:17 +0200 Subject: [PATCH] [11426] Call JustSummoned (gameobject case) also from EffectSummonObject Signed-off-by: NoFantasy --- src/game/SpellEffects.cpp | 3 +++ src/shared/revision_nr.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 24209f639..23b0cb0a0 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -8068,6 +8068,9 @@ void Spell::EffectSummonObject(SpellEffectIndex eff_idx) m_caster->m_ObjectSlot[slot] = pGameObj->GetGUID(); pGameObj->SummonLinkedTrapIfAny(); + + if (m_caster->GetTypeId() == TYPEID_UNIT && ((Creature*)m_caster)->AI()) + ((Creature*)m_caster)->AI()->JustSummoned(pGameObj); } void Spell::EffectResurrect(SpellEffectIndex /*eff_idx*/) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 96112c6d5..d6302888e 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 "11425" + #define REVISION_NR "11426" #endif // __REVISION_NR_H__