上阵校验

lvxinran 2020-11-03 06:11:39 +08:00
parent 348fff34e4
commit 4c78acd96f
1 changed files with 3 additions and 0 deletions

View File

@ -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);