mirror of
https://github.com/mangosfour/server.git
synced 2026-01-02 01:37:05 +00:00
[11426] Call JustSummoned (gameobject case) also from EffectSummonObject
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
81bd108174
commit
635d132ea8
2 changed files with 4 additions and 1 deletions
|
|
@ -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*/)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue