mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
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
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
This commit is contained in:
parent
fcbd70e9a0
commit
924400bba7
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user