[11426] Call JustSummoned (gameobject case) also from EffectSummonObject

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2011-05-02 23:55:17 +02:00
parent 81bd108174
commit 635d132ea8
2 changed files with 4 additions and 1 deletions

View file

@ -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*/)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11425"
#define REVISION_NR "11426"
#endif // __REVISION_NR_H__