mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[9506] Add missing AI calls to inform summoner of summon-related events
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
3a5f6ff0fb
commit
d775eea9a4
4 changed files with 20 additions and 2 deletions
|
|
@ -3859,6 +3859,9 @@ void Spell::DoSummon(SpellEffectIndex eff_idx)
|
|||
spawnCreature->SavePetToDB(PET_SAVE_AS_CURRENT);
|
||||
((Player*)m_caster)->PetSpellInitialize();
|
||||
}
|
||||
|
||||
if (m_caster->GetTypeId() == TYPEID_UNIT && ((Creature*)m_caster)->AI())
|
||||
((Creature*)m_caster)->AI()->JustSummoned((Creature*)spawnCreature);
|
||||
}
|
||||
|
||||
void Spell::EffectLearnSpell(SpellEffectIndex eff_idx)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue