Skip to content

Commit

Permalink
Merge pull request #154 from SpaceServerUniverse/dev/yurisi-fix-gacha
Browse files Browse the repository at this point in the history
  • Loading branch information
meyason authored Oct 15, 2024
2 parents e9a8166 + 2c1a64a commit 4f4357d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ public EventGacha(Player player) {
public void turn() {
Boolean ticket = UniverseItem.removeItem(player, "gacha_ticket");

if (player.getInventory().firstEmpty() == -1) {
Message.sendErrorMessage(player, "[ガチャAI]", "インベントリがいっぱいです。(スタックが余ってる場合も一度しまって下さい。)");
return;
}

if(!ticket){
Message.sendErrorMessage(player, "[ガチャAI]", "チケットが足りません。");
return;
Expand Down

0 comments on commit 4f4357d

Please sign in to comment.