Check animation play is not move or drop.
This commit is contained in:
parent
6d59c03652
commit
2400b57a2c
@ -1068,6 +1068,7 @@ const INTERFACE = {
|
|||||||
let piece = null;
|
let piece = null;
|
||||||
let target = null;
|
let target = null;
|
||||||
while(INTERFACE_DATA.replay_turn < turn) {
|
while(INTERFACE_DATA.replay_turn < turn) {
|
||||||
|
if(INTERFACE_DATA.history[INTERFACE_DATA.replay_turn].source < 2) {
|
||||||
play = INTERFACE_DATA.history[INTERFACE_DATA.replay_turn];
|
play = INTERFACE_DATA.history[INTERFACE_DATA.replay_turn];
|
||||||
|
|
||||||
if(play.source == 0) {
|
if(play.source == 0) {
|
||||||
@ -1089,6 +1090,7 @@ const INTERFACE = {
|
|||||||
|
|
||||||
INTERFACE_DATA.replay_turn++;
|
INTERFACE_DATA.replay_turn++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(animate) {
|
if(animate) {
|
||||||
INTERFACE_DATA.Animate.time = Date.now() + 500;
|
INTERFACE_DATA.Animate.time = Date.now() + 500;
|
||||||
INTERFACE_DATA.Animate.play = play;
|
INTERFACE_DATA.Animate.play = play;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user