mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 01:37:04 +00:00
[11721] Simplify walk/run movement mode selection code
This commit is contained in:
parent
9d566398ad
commit
fc0eb7e9fa
10 changed files with 10 additions and 54 deletions
|
|
@ -4719,8 +4719,6 @@ void Spell::DoSummon(SpellEffectIndex eff_idx)
|
|||
|
||||
spawnCreature->GetCharmInfo()->SetPetNumber(pet_number, false);
|
||||
|
||||
spawnCreature->UpdateWalkMode(m_caster);
|
||||
|
||||
spawnCreature->AIM_Initialize();
|
||||
spawnCreature->InitPetCreateSpells();
|
||||
spawnCreature->InitLevelupSpellsForLevel();
|
||||
|
|
@ -5640,8 +5638,6 @@ void Spell::EffectSummonPet(SpellEffectIndex eff_idx)
|
|||
NewSummon->SetUInt32Value(UNIT_FIELD_PETNEXTLEVELEXP, 1000);
|
||||
NewSummon->SetUInt32Value(UNIT_CREATED_BY_SPELL, m_spellInfo->Id);
|
||||
|
||||
NewSummon->UpdateWalkMode(m_caster);
|
||||
|
||||
NewSummon->GetCharmInfo()->SetPetNumber(pet_number, true);
|
||||
// this enables pet details window (Shift+P)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue