fix:自动清怪
This commit is contained in:
parent
83fc67fb58
commit
22b99dc49c
@ -1878,15 +1878,6 @@ control.prototype._replayAction_getNext = function (action) {
|
||||
|
||||
control.prototype._replayAction_moveDirectly = function (action) {
|
||||
if (action.indexOf("move:") != 0) return false;
|
||||
// 忽略连续的瞬移事件;如果大地图某一边超过计算范围则不合并
|
||||
if (!core.hasFlag('poison') && core.status.thisMap.width < 2 * core.bigmap.extend + core.__SIZE__
|
||||
&& core.status.thisMap.height < 2 * core.bigmap.extend + core.__SIZE__) {
|
||||
while (core.status.replay.toReplay.length > 0 &&
|
||||
core.status.replay.toReplay[0].indexOf('move:') == 0) {
|
||||
core.status.route.push(action);
|
||||
action = core.status.replay.toReplay.shift();
|
||||
}
|
||||
}
|
||||
|
||||
var pos = action.substring(5).split(":");
|
||||
var x = parseInt(pos[0]), y = parseInt(pos[1]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user