Move zBrokeProtect to ActiveMove

This commit is contained in:
Guangcong Luo 2018-10-28 05:22:13 -05:00
parent 68e81c8c72
commit 1de5e74a9a
2 changed files with 5 additions and 7 deletions

View File

@ -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

View File

@ -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