mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[11275] Add missing script call JustSummoned for guardian and critter pet
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
281bf03b12
commit
cb1bb261ea
2 changed files with 9 additions and 1 deletions
|
|
@ -5013,6 +5013,10 @@ void Spell::DoSummonGuardian(SpellEffectIndex eff_idx, uint32 forceFaction)
|
||||||
m_caster->AddGuardian(spawnCreature);
|
m_caster->AddGuardian(spawnCreature);
|
||||||
|
|
||||||
map->Add((Creature*)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);
|
m_caster->SetMiniPet(critter);
|
||||||
|
|
||||||
map->Add((Creature*)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)
|
void Spell::EffectKnockBack(SpellEffectIndex eff_idx)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11274"
|
#define REVISION_NR "11275"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue