竞技场挑战
parent
2d361b777f
commit
81638a0bc6
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue