Skip to content

Commit

Permalink
Don't generate pet number twice on tame.
Browse files Browse the repository at this point in the history
vmangos had same issue vmangos/core@b1e49ba
  • Loading branch information
celguar authored and killerwife committed Jan 8, 2024
1 parent 17eff1e commit b9ed3be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Spells/SpellEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5307,7 +5307,7 @@ void Spell::EffectTameCreature(SpellEffectIndex /*eff_idx*/)
if (plr->IsPvP())
pet->SetPvP(true);

pet->GetCharmInfo()->SetPetNumber(sObjectMgr.GeneratePetNumber(), true);
pet->GetCharmInfo()->SetPetNumber(pet->GetObjectGuid().GetEntry(), true);

uint32 level = creatureTarget->GetLevel();
pet->SetCanModifyStats(true);
Expand Down

0 comments on commit b9ed3be

Please sign in to comment.