上阵校验
parent
348fff34e4
commit
4c78acd96f
|
@ -3123,6 +3123,9 @@ public class HeroLogic{
|
|||
if(consumePokemon.getLevel()!=1||consumePokemon.getStar()!=0){
|
||||
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE);
|
||||
}
|
||||
if(pokemonManager.getPokemonTeamMap().containsValue(consume)){
|
||||
throw new ErrorCodeException(ErrorCode.ITEM_DECOMPOSE_HERO_TEAM);
|
||||
}
|
||||
}
|
||||
int[][] consumeRes = config.getConsumeRes();
|
||||
boolean itemCost = ItemUtil.itemCost(user, consumeRes, BIReason.SPECIAL_STAR_UP_CONSUME, 1);
|
||||
|
|
Loading…
Reference in New Issue