mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 01:37:04 +00:00
[11418] Add CreatureAI call JustSummoned version for GameObject*
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
9aaa8069e2
commit
df1376b14b
3 changed files with 10 additions and 1 deletions
|
|
@ -6156,6 +6156,9 @@ void Spell::EffectSummonObjectWild(SpellEffectIndex eff_idx)
|
|||
}
|
||||
|
||||
pGameObj->SummonLinkedTrapIfAny();
|
||||
|
||||
if (m_caster->GetTypeId() == TYPEID_UNIT && ((Creature*)m_caster)->AI())
|
||||
((Creature*)m_caster)->AI()->JustSummoned(pGameObj);
|
||||
}
|
||||
|
||||
void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
||||
|
|
@ -8696,6 +8699,9 @@ void Spell::EffectTransmitted(SpellEffectIndex eff_idx)
|
|||
cMap->Add(pGameObj);
|
||||
|
||||
pGameObj->SummonLinkedTrapIfAny();
|
||||
|
||||
if (m_caster->GetTypeId() == TYPEID_UNIT && ((Creature*)m_caster)->AI())
|
||||
((Creature*)m_caster)->AI()->JustSummoned(pGameObj);
|
||||
}
|
||||
|
||||
void Spell::EffectProspecting(SpellEffectIndex /*eff_idx*/)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue