From ec6c26e8a9a9e7de19b9ef4827acc9846097052c Mon Sep 17 00:00:00 2001 From: wangyuan Date: Wed, 26 Jun 2019 18:04:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=88=A0=E9=99=A4=E7=B2=BE?= =?UTF-8?q?=E8=8B=B1=E6=80=AA=E5=9D=90=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ljsd/jieling/handler/map/MapLogic.java | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/handler/map/MapLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/handler/map/MapLogic.java index c559094c0..9c450600a 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/handler/map/MapLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/handler/map/MapLogic.java @@ -1163,19 +1163,24 @@ public class MapLogic { } int nextEventId = 0; int triggerXY = mapManager.getTriggerXY(); - Cell cell = mapManager.getMapInfo().get(triggerXY); - if (cell != null) { - nextEventId = getNextEventId(user, cell, sOptionConfig); - cell.setEventId(nextEventId); - mapManager.addOrUpdateCell(triggerXY, cell); + if (monsterGroupId == mapManager.getSuddenlyBoss()) { + mapManager.findSuddenlyBoss(0, 0); + BehaviorUtil.destoryApointXY(user,triggerXY); + }else{ + Cell cell = mapManager.getMapInfo().get(triggerXY); + if (cell != null) { + nextEventId = getNextEventId(user, cell, sOptionConfig); + cell.setEventId(nextEventId); + mapManager.addOrUpdateCell(triggerXY, cell); + } } + + fightEndResponse.setEventId(nextEventId); // LOGGER.info("endFight() uid=>{},nextEventId=>{}", uid, nextEventId); MapMissionManager.updateMapMission(mapManager, EventType.fightEvent, monsterGroupId, monsterGroupId); // LOGGER.info("endFight() uid=>{} sMonsterGroup.getRewardgroup()=>{} misson=>{} eventDrop=>{}, missionDrop=>{}", uid, sMonsterGroup.getRewardgroup(), fightEndResponse.getMission(), fightEndResponse.getEnventDrop(), fightEndResponse.getMissionDrop()); - if (monsterGroupId == mapManager.getSuddenlyBoss()) { - mapManager.findSuddenlyBoss(0, 0); - } + MessageUtil.sendMessage(session, 1, messageType.getNumber(), fightEndResponse.build(), true);