Fix old client player controls when maxMoves aren't in request (#2421)
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run

This commit is contained in:
pyuk-bot 2025-05-14 18:59:20 -05:00 committed by GitHub
parent fcbd70e9a0
commit 924400bba7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -574,7 +574,7 @@
var canUltraBurst = curActive.canUltraBurst || switchables[pos].canUltraBurst;
var canDynamax = curActive.canDynamax || switchables[pos].canDynamax;
var maxMoves = curActive.maxMoves || switchables[pos].maxMoves;
var gigantamax = curActive.maxMoves.gigantamax;
var gigantamax = curActive.maxMoves && curActive.maxMoves.gigantamax;
var canTerastallize = curActive.canTerastallize || switchables[pos].canTerastallize;
if (canZMove && typeof canZMove[0] === 'string') {
canZMove = _.map(canZMove, function (move) {