mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-09 04:23:45 -05:00
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:
parent
623d1212f8
commit
8afc588e4f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user