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 Dec 25, 2023
1 parent 0400817 commit 54b538a
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 @@ -3368,7 +3368,7 @@ void Spell::EffectTameCreature(SpellEffectIndex /*eff_idx*/)
if (plr->IsPvP())
pet->SetPvP(true);

pet->GetCharmInfo()->SetPetNumber(sObjectMgr.GeneratePetNumber(), (m_caster->GetTypeId() == TYPEID_PLAYER));
pet->GetCharmInfo()->SetPetNumber(pet->GetObjectGuid().GetEntry(), (m_caster->GetTypeId() == TYPEID_PLAYER));

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

0 comments on commit 54b538a

Please sign in to comment.