fix creature
parent
cd38e82643
commit
082e21cadf
|
@ -162,7 +162,6 @@ public abstract class Creature extends SceneActor{
|
|||
int curPos = getPos();
|
||||
|
||||
LOGGER.info("the id={},preMoveTimestamp={},the time ={},move={},the oldXy={},the curXy={}",getId(),new Date(preMoveTimestamp),new Date(timestamp),moveDistance,CellUtil.pos2XY(oldXY),CellUtil.pos2XY(curPos));
|
||||
setStateType(StateType.MOVEABLE);
|
||||
preMoveTimestamp = timestamp;
|
||||
return curPos;
|
||||
}
|
||||
|
|
|
@ -132,6 +132,7 @@ public abstract class SceneActor{
|
|||
}
|
||||
}
|
||||
//清楚挖抗连续事件
|
||||
setStateType(StateType.MOVEABLE);
|
||||
MessageBoxUtils.onGameEvent(AnalysisEventType.DIGGER,scene,new AnalysisSourceData(value.getTarget(),value.getCaster(),-1));
|
||||
scene.processEventUpdate(EventType.BUFFER_REMOVE,value.getId());
|
||||
}
|
||||
|
@ -160,7 +161,7 @@ public abstract class SceneActor{
|
|||
scene.processEventUpdate(EventType.SCENEACTORE_REMOVE,this.getId());
|
||||
return;
|
||||
}
|
||||
addOrUpdateBuffer(new EffectBuffer(scene.getBufferId(),4,now,now+5000,this.getId(),0,0));
|
||||
addOrUpdateBuffer(new EffectBuffer(scene.getBufferId(),BufferType.REBIRTH.getType(),now,now+5000,this.getId(),0,0));
|
||||
// 定位到出生点位置
|
||||
this.setPos(SceneManager.selectForPlayerRebirth(scene));
|
||||
scene.processEventUpdate(EventType.SCENEACTORE_UPDATE,id);
|
||||
|
|
|
@ -152,6 +152,7 @@ public class SceneManager {
|
|||
System.out.println("find and break... " + monsterIndex);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue