diff options
author | Meji <alvaromegias_46@hotmail.com> | 2021-10-03 21:20:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-03 21:20:45 +0200 |
commit | 0cfd14d2a0a52ceb0d8203c31c7c6c487775bcee (patch) | |
tree | c131dfb62ba3bde90a9bb05c93ae5a2813f62190 /src/server/game/Spells/SpellEffects.cpp | |
parent | b1c0d069e1eba2f7b43ada8032b954bff630b68d (diff) |
Core/BattlePets: Misc fixes (#26990)
* Define BattlePetBreedQuality enum class.
* Check the quality of the battle pet species in battle_pet_quality table to avoid invalid values.
* Set CurrentBattlePetBreedQuality and WildBattlePetLevel update fields with the data of the summoned battle pet.
* Added function to calculate the WildBattlePetLevel of wild battle pets according to their spawn zone.
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
-rw-r--r-- | src/server/game/Spells/SpellEffects.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index 0c12f8f8243..49936e0ed15 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -5670,7 +5670,7 @@ void Spell::EffectUncageBattlePet() return; } - battlePetMgr->AddPet(speciesId, creatureId, breed, quality, level); + battlePetMgr->AddPet(speciesId, creatureId, breed, BattlePetBreedQuality(quality), level); if (!plr->HasSpell(speciesEntry->SummonSpellID)) plr->LearnSpell(speciesEntry->SummonSpellID, false); |