Improvement to the playAnim function (#776)

* Improvement to the playAnim function

* dont mind me

---------

Co-authored-by: ⍚~Nex <87421482+NexIsDumb@users.noreply.github.com>
This commit is contained in:
Care
2025-09-21 17:06:29 +02:00
committed by GitHub
co-authored by ⍚~Nex
parent 6612fa6205
commit b2049e6285
+2 -2
View File
@@ -1640,7 +1640,7 @@ class PlayState extends MusicBeatState
case "Play Animation":
if (strumLines.members[event.params[0]] != null && strumLines.members[event.params[0]].characters != null)
for (char in strumLines.members[event.params[0]].characters)
if (char != null) char.playAnim(event.params[1], event.params[2], event.params[3] == "NONE" ? null : event.params[3]);
if (char != null && char.hasAnim(event.params[1])) char.playAnim(event.params[1], event.params[2], event.params[3] == "NONE" ? null : event.params[3]);
case "Unknown": // nothing
}
}
@@ -2241,4 +2241,4 @@ class CamPosData {
pos.put();
pos = null;
}
}
}