Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Fix issue with evolving locked pets
Browse files Browse the repository at this point in the history
  • Loading branch information
Pluviolithic committed Dec 2, 2023
1 parent 5dc6a10 commit 9431b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/Combat/Perks/Pets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ local function evolvePet(player, petName)

if unlockedPetCount < 5 then
local countToUnlock = 5 - unlockedPetCount
if equippedPets[petName] or countToUnlock > (petOwnedCount - equippedPets[petName]) then
if equippedPets[petName] and countToUnlock > (petOwnedCount - equippedPets[petName]) then
if countToUnlock == equippedPets[petName] then
store:dispatch(actions.unequipPlayerPets(player.Name, { [petName] = countToUnlock }))
else
Expand Down

0 comments on commit 9431b20

Please sign in to comment.