Don't send trapped flag to client in pokemon requestData

It caused the "you might be trapped" message to effectively mean "you could have been trapped, but aren't".
This commit is contained in:
Ivo Julca 2014-10-15 01:36:43 -05:00
parent 623d1212f8
commit 8afc588e4f

View File

@ -554,9 +554,7 @@ BattlePokemon = (function () {
BattlePokemon.prototype.getRequestData = function () {
var lockedMove = this.getLockedMove();
var data = {moves: this.getMoves(lockedMove)};
if (this.trapped) {
data.trapped = true;
} else if (this.maybeTrapped) {
if (this.maybeTrapped) {
data.maybeTrapped = true;
}
return data;