[11275] Add missing script call JustSummoned for guardian and critter pet

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
Schmoozerd 2011-03-21 23:56:04 +01:00 committed by NoFantasy
parent 281bf03b12
commit cb1bb261ea
2 changed files with 9 additions and 1 deletions

View file

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

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11274"
#define REVISION_NR "11275"
#endif // __REVISION_NR_H__