Check animation play is not move or drop.

This commit is contained in:
yukirij 2024-09-01 15:21:43 -07:00
parent 6d59c03652
commit 2400b57a2c

View File

@ -1068,6 +1068,7 @@ const INTERFACE = {
let piece = null;
let target = null;
while(INTERFACE_DATA.replay_turn < turn) {
if(INTERFACE_DATA.history[INTERFACE_DATA.replay_turn].source < 2) {
play = INTERFACE_DATA.history[INTERFACE_DATA.replay_turn];
if(play.source == 0) {
@ -1089,6 +1090,7 @@ const INTERFACE = {
INTERFACE_DATA.replay_turn++;
}
}
if(animate) {
INTERFACE_DATA.Animate.time = Date.now() + 500;
INTERFACE_DATA.Animate.play = play;