From cb1bb261ea440abaa6078c4fec182f740cfae31e Mon Sep 17 00:00:00 2001 From: Schmoozerd Date: Mon, 21 Mar 2011 23:56:04 +0100 Subject: [PATCH] [11275] Add missing script call JustSummoned for guardian and critter pet Signed-off-by: NoFantasy --- src/game/SpellEffects.cpp | 8 ++++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 32054c935..2942d3709 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -5013,6 +5013,10 @@ void Spell::DoSummonGuardian(SpellEffectIndex eff_idx, uint32 forceFaction) m_caster->AddGuardian(spawnCreature); map->Add((Creature*)spawnCreature); + + // Notify Summoner + if (m_caster->GetTypeId() == TYPEID_UNIT && ((Creature*)m_caster)->AI()) + ((Creature*)m_caster)->AI()->JustSummoned(spawnCreature); } } @@ -8148,6 +8152,10 @@ void Spell::DoSummonCritter(SpellEffectIndex eff_idx, uint32 forceFaction) m_caster->SetMiniPet(critter); map->Add((Creature*)critter); + + // Notify Summoner + if (m_caster->GetTypeId() == TYPEID_UNIT && ((Creature*)m_caster)->AI()) + ((Creature*)m_caster)->AI()->JustSummoned(critter); } void Spell::EffectKnockBack(SpellEffectIndex eff_idx) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 7f25e4a0c..a8867b8c1 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 "11274" + #define REVISION_NR "11275" #endif // __REVISION_NR_H__