Skip to content

Commit be4a96c

Browse files
fix missing petstats after first summon
1 parent e733bac commit be4a96c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/game/Spells/SpellEffects.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2354,6 +2354,7 @@ void Spell::EffectSummon(SpellEffectIndex effIdx)
23542354
spawnCreature->InitializeDefaultName();
23552355
spawnCreature->AIM_Initialize();
23562356
spawnCreature->InitPetCreateSpells();
2357+
spawnCreature->UpdateAllStats();
23572358
spawnCreature->SetHealth(spawnCreature->GetMaxHealth());
23582359
spawnCreature->SetPower(POWER_MANA, spawnCreature->GetMaxPower(POWER_MANA));
23592360

@@ -3229,6 +3230,7 @@ ObjectGuid Unit::EffectSummonPet(uint32 spellId, uint32 petEntry, uint32 petLeve
32293230

32303231
newSummon->AIM_Initialize();
32313232
newSummon->InitPetCreateSpells();
3233+
newSummon->UpdateAllStats();
32323234
newSummon->SetHealth(newSummon->GetMaxHealth());
32333235
newSummon->SetPower(POWER_MANA, newSummon->GetMaxPower(POWER_MANA));
32343236

0 commit comments

Comments
 (0)