fix skip fight

back_recharge
wangyuan 2019-06-27 19:32:03 +08:00
parent 121c465496
commit 0204a27a38
1 changed files with 8 additions and 5 deletions

View File

@ -1181,12 +1181,15 @@ public class MapLogic {
mapManager.findSuddenlyBoss(0, 0); mapManager.findSuddenlyBoss(0, 0);
}else{ }else{
Cell cell = mapManager.getMapInfo().get(triggerXY); if(sOptionConfig!=null){
if (cell != null && cell.getEventId()!=-1 && sOptionConfig!=null) { Cell cell = mapManager.getMapInfo().get(triggerXY);
nextEventId = getNextEventId(user, cell, sOptionConfig); if (cell != null ) {
cell.setEventId(nextEventId); nextEventId = getNextEventId(user, cell, sOptionConfig);
mapManager.addOrUpdateCell(triggerXY, cell); cell.setEventId(nextEventId);
mapManager.addOrUpdateCell(triggerXY, cell);
}
} }
} }