竞技场挑战

master_zzxx
grimm 2024-06-17 15:49:22 +08:00
parent 2d361b777f
commit 81638a0bc6
1 changed files with 5 additions and 3 deletions

View File

@ -207,9 +207,11 @@ public class ArenaLogic {
if (ifUpdate){
// 免费特权
PlayerLogic.getInstance().checkAndUpdate(user, battleFree, 1);
// 道具校验
ItemUtil.itemCost(user, new int[][]{sArenaSetting.getCost()}, BIReason.ARENA_CHALLENGE_CONSUME, 0);
boolean update = PlayerLogic.getInstance().checkAndUpdate(user, battleFree, 1);
if (!update){
// 道具校验
ItemUtil.itemCost(user, new int[][]{sArenaSetting.getCost()}, BIReason.ARENA_CHALLENGE_CONSUME, 0);
}
}else {
// 免费特权
boolean vipUpdate = PlayerLogic.getInstance().check(user, battleFree, 1);