自动删除精英怪坐标
parent
5dbcbb4bd3
commit
ec6c26e8a9
|
@ -1163,19 +1163,24 @@ public class MapLogic {
|
||||||
}
|
}
|
||||||
int nextEventId = 0;
|
int nextEventId = 0;
|
||||||
int triggerXY = mapManager.getTriggerXY();
|
int triggerXY = mapManager.getTriggerXY();
|
||||||
|
if (monsterGroupId == mapManager.getSuddenlyBoss()) {
|
||||||
|
mapManager.findSuddenlyBoss(0, 0);
|
||||||
|
BehaviorUtil.destoryApointXY(user,triggerXY);
|
||||||
|
}else{
|
||||||
Cell cell = mapManager.getMapInfo().get(triggerXY);
|
Cell cell = mapManager.getMapInfo().get(triggerXY);
|
||||||
if (cell != null) {
|
if (cell != null) {
|
||||||
nextEventId = getNextEventId(user, cell, sOptionConfig);
|
nextEventId = getNextEventId(user, cell, sOptionConfig);
|
||||||
cell.setEventId(nextEventId);
|
cell.setEventId(nextEventId);
|
||||||
mapManager.addOrUpdateCell(triggerXY, cell);
|
mapManager.addOrUpdateCell(triggerXY, cell);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
fightEndResponse.setEventId(nextEventId);
|
fightEndResponse.setEventId(nextEventId);
|
||||||
// LOGGER.info("endFight() uid=>{},nextEventId=>{}", uid, nextEventId);
|
// LOGGER.info("endFight() uid=>{},nextEventId=>{}", uid, nextEventId);
|
||||||
MapMissionManager.updateMapMission(mapManager, EventType.fightEvent, monsterGroupId, monsterGroupId);
|
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());
|
// 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);
|
MessageUtil.sendMessage(session, 1, messageType.getNumber(), fightEndResponse.build(), true);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue