Skip to content

Commit

Permalink
fix: obtain phantasmal jade mount
Browse files Browse the repository at this point in the history
# Description

The check condition of required items is wrong.

## Behaviour

To get the mount, you need to have exactly 1x spectral saddle and 1x spectral horse tack

### **Actual**

Now, regardless of whether you have 1 or more items in your backpack, you will be able to receive the item.
  • Loading branch information
pedrohfk committed Nov 11, 2024
1 parent 1ed69b8 commit d7deb86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function phantasmalJadeMount.onUse(player, item, fromPosition, target, toPositio
end

if table.contains({ 34072, 34073, 34074 }, item.itemid) then
if player:getItemCount(34072) >= 4 and player:getItemCount(34073) == 1 and player:getItemCount(34074) == 1 then
if player:getItemCount(34072) >= 4 and player:getItemCount(34073) >= 1 and player:getItemCount(34074) >= 1 then
player:removeItem(34072, 4)
player:removeItem(34073, 1)
player:removeItem(34074, 1)
Expand Down

0 comments on commit d7deb86

Please sign in to comment.