exports.BattleStatuses = {
	slp: {
		inherit: true,
		onSwitchIn: function(target) {
			this.effectData.time = this.effectData.startTime;
		}
	}
	partiallytrapped: {
		inherit: true,
		onResidual: function(pokemon) {
			if (this.effectData.source && (!this.effectData.source.isActive || this.effectData.source.hp <= 0)) {
				pokemon.removeVolatile('partiallytrapped');
				return;
			}
			if (this.effectData.source.item === 'bindingband') {
				this.damage(pokemon.maxhp/8);
			} else {
				this.damage(pokemon.maxhp/16);
			}
		},
	}
};

@@ -137,16 +137,17 @@
 ;%0A%09%09%7D%0A%09%7D
+,
 %0A%09partia
@@ -526,16 +526,15 @@
 %09%09%09%7D%0A%09%09%7D
-,
 %0A%09%7D%0A%7D;%0A

Fix crash from commit 644d9fc720dbcfbc845c46528ac29dfc80e2c39f