From 1de5e74a9a09ea5775c1f39fc54830aabed040a2 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Sun, 28 Oct 2018 05:22:13 -0500 Subject: [PATCH] Move zBrokeProtect to ActiveMove --- dev-tools/globals.ts | 5 +++++ sim/dex-data.js | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/dev-tools/globals.ts b/dev-tools/globals.ts index 08a0e8f7d..32eb763dd 100644 --- a/dev-tools/globals.ts +++ b/dev-tools/globals.ts @@ -552,6 +552,11 @@ interface ActiveMove extends Effect, MoveData { statusRoll?: string totalDamage?: number | false willChangeForme?: boolean + /** + * Whether or not this move is a Z-Move that broke protect + * (affects damage calculation). + * @type {boolean} + */ zBrokeProtect?: boolean /** * Has this move been boosted by a Z-crystal? Usually the same as diff --git a/sim/dex-data.js b/sim/dex-data.js index 9ba42cd4a..a8850c590 100644 --- a/sim/dex-data.js +++ b/sim/dex-data.js @@ -1031,13 +1031,6 @@ class Move extends Effect { */ this.isZ = this.isZ || false; - /** - * Whether or not this move is a Z-Move that broke protect - * (affects damage calculation). - * @type {boolean} - */ - this.zBrokeProtect = !!this.zBrokeProtect; - /** * @type {MoveFlags} * @readonly