Fixed bug where ultimate ironmen could have rewards sent to bank

Fixed the allquest command on new accounts on first login
This commit is contained in:
Player Name
2025-01-20 13:52:46 +00:00
committed by Ryan
parent 9af776e3c6
commit a932c309b3
3 changed files with 34 additions and 18 deletions
+2 -2
View File
@@ -448,9 +448,9 @@ fun addItemOrDrop(player: Player, id: Int, amount: Int = 1) {
fun addItemOrBank(player: Player, id: Int, amount: Int = 1) {
val item = Item(id, amount)
if (!player.inventory.add(item)) {
if (player.bankPrimary.add(item)) {
if (player.ironmanManager.mode != IronmanMode.ULTIMATE && player.bankPrimary.add(item)) {
sendMessage(player, colorize("%RThe ${item.name} has been sent to your bank."))
} else if (player.bankSecondary.add(item)) {
} else if (player.ironmanManager.mode != IronmanMode.ULTIMATE && player.bankSecondary.add(item)) {
sendMessage(player, colorize("%RThe ${item.name} has been sent to your secondary bank."))
} else {
GroundItemManager.create(item, player)