diff --git a/src/js/shared_controls.js b/src/js/shared_controls.js index 9f92cb0c5..1e25679cc 100644 --- a/src/js/shared_controls.js +++ b/src/js/shared_controls.js @@ -1198,20 +1198,42 @@ function createField() { var createSide = function (i) { return new calc.Side({ - spikes: spikes[i], isSR: isSR[i], steelsurge: steelsurge[i], - vinelash: vinelash[i], wildfire: wildfire[i], cannonade: cannonade[i], volcalith: volcalith[i], - isReflect: isReflect[i], isLightScreen: isLightScreen[i], - isProtected: isProtected[i], isSeeded: isSeeded[i], isForesight: isForesight[i], isSteelySpirit: isSteelySpirit[i], - isTailwind: isTailwind[i], isHelpingHand: isHelpingHand[i], isFlowerGift: isFlowerGift[i], isFriendGuard: isFriendGuard[i], - isAuroraVeil: isAuroraVeil[i], isBattery: isBattery[i], isPowerSpot: isPowerSpot[i], isSwitching: isSwitchingOut[i] ? 'out' : undefined + spikes: spikes[i], + isSR: isSR[i], + steelsurge: steelsurge[i], + vinelash: vinelash[i], + wildfire: wildfire[i], + cannonade: cannonade[i], + volcalith: volcalith[i], + isReflect: isReflect[i], + isLightScreen: isLightScreen[i], + isProtected: isProtected[i], + isSeeded: isSeeded[i], + isForesight: isForesight[i], + isTailwind: isTailwind[i], + isHelpingHand: isHelpingHand[i], + isFlowerGift: isFlowerGift[i], + isSteelySpirit: isSteelySpirit[i], + isFriendGuard: isFriendGuard[i], + isAuroraVeil: isAuroraVeil[i], + isBattery: isBattery[i], + isPowerSpot: isPowerSpot[i], + isSwitching: isSwitchingOut[i] ? 'out' : undefined }); }; return new calc.Field({ - gameType: gameType, weather: weather, terrain: terrain, - isMagicRoom: isMagicRoom, isWonderRoom: isWonderRoom, isGravity: isGravity, - isBeadsOfRuin: isBeadsOfRuin, isTabletsOfRuin: isTabletsOfRuin, - isSwordOfRuin: isSwordOfRuin, isVesselOfRuin: isVesselOfRuin, - attackerSide: createSide(0), defenderSide: createSide(1) + gameType: gameType, + terrain: terrain, + isBeadsOfRuin: isBeadsOfRuin, + isTabletsOfRuin: isTabletsOfRuin, + isSwordOfRuin: isSwordOfRuin, + isVesselOfRuin: isVesselOfRuin, + weather: weather, + isMagicRoom: isMagicRoom, + isWonderRoom: isWonderRoom, + isGravity: isGravity, + attackerSide: createSide(0), + defenderSide: createSide(1) }); }