mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-28 11:46:55 -05:00
Move zBrokeProtect to ActiveMove
This commit is contained in:
parent
68e81c8c72
commit
1de5e74a9a
|
|
@ -552,6 +552,11 @@ interface ActiveMove extends Effect, MoveData {
|
||||||
statusRoll?: string
|
statusRoll?: string
|
||||||
totalDamage?: number | false
|
totalDamage?: number | false
|
||||||
willChangeForme?: boolean
|
willChangeForme?: boolean
|
||||||
|
/**
|
||||||
|
* Whether or not this move is a Z-Move that broke protect
|
||||||
|
* (affects damage calculation).
|
||||||
|
* @type {boolean}
|
||||||
|
*/
|
||||||
zBrokeProtect?: boolean
|
zBrokeProtect?: boolean
|
||||||
/**
|
/**
|
||||||
* Has this move been boosted by a Z-crystal? Usually the same as
|
* Has this move been boosted by a Z-crystal? Usually the same as
|
||||||
|
|
|
||||||
|
|
@ -1031,13 +1031,6 @@ class Move extends Effect {
|
||||||
*/
|
*/
|
||||||
this.isZ = this.isZ || false;
|
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}
|
* @type {MoveFlags}
|
||||||
* @readonly
|
* @readonly
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user