Skip to content

Commit

Permalink
Move zBrokeProtect to ActiveMove
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarel committed Oct 28, 2018
1 parent 68e81c8 commit 1de5e74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 5 additions & 0 deletions dev-tools/globals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions sim/dex-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1de5e74

Please sign in to comment.