fix: 停止移动时同时停止跟随者

This commit is contained in:
unanmed 2026-02-28 20:13:49 +08:00
parent 5c44d140a8
commit 3917b29510

View File

@ -298,16 +298,11 @@ export class MapHeroRenderer implements IMapHeroRenderer {
this.entities.forEach(v => this.endEntityMoving(v));
}
stopMove(stopFollower: boolean): void {
if (stopFollower) {
this.entities.forEach(v => {
v.block.endMoving();
this.endEntityMoving(v);
});
} else {
this.heroEntity.block.endMoving();
this.endEntityMoving(this.heroEntity);
}
stopMove(): void {
this.entities.forEach(v => {
v.block.endMoving();
this.endEntityMoving(v);
});
}
async move(direction: FaceDirection, time: number): Promise<void> {