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);
}else{
Cell cell = mapManager.getMapInfo().get(triggerXY);
if (cell != null && cell.getEventId()!=-1 && sOptionConfig!=null) {
nextEventId = getNextEventId(user, cell, sOptionConfig);
cell.setEventId(nextEventId);
mapManager.addOrUpdateCell(triggerXY, cell);
if(sOptionConfig!=null){
Cell cell = mapManager.getMapInfo().get(triggerXY);
if (cell != null ) {
nextEventId = getNextEventId(user, cell, sOptionConfig);
cell.setEventId(nextEventId);
mapManager.addOrUpdateCell(triggerXY, cell);
}
}
}