mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-23 15:59:26 +02:00
integerholder to numberholder
This commit is contained in:
parent
5d490af886
commit
aefa6098c9
@ -4107,11 +4107,11 @@ export class StatusCategoryOnAllyAttr extends VariableMoveCategoryAttr {
|
|||||||
* @param user {@linkcode Pokemon} using the move
|
* @param user {@linkcode Pokemon} using the move
|
||||||
* @param target {@linkcode Pokemon} target of the move
|
* @param target {@linkcode Pokemon} target of the move
|
||||||
* @param move {@linkcode Move} with this attribute
|
* @param move {@linkcode Move} with this attribute
|
||||||
* @param args [0] {@linkcode Utils.IntegerHolder} The category of the move
|
* @param args [0] {@linkcode Utils.NumberHolder} The category of the move
|
||||||
* @returns true if the function succeeds
|
* @returns true if the function succeeds
|
||||||
*/
|
*/
|
||||||
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
|
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
|
||||||
const category = (args[0] as Utils.IntegerHolder);
|
const category = (args[0] as Utils.NumberHolder);
|
||||||
|
|
||||||
if (user.getAlly() === target) {
|
if (user.getAlly() === target) {
|
||||||
category.value = MoveCategory.STATUS;
|
category.value = MoveCategory.STATUS;
|
||||||
|
@ -192,7 +192,7 @@ export class MoveEffectPhase extends PokemonPhase {
|
|||||||
* made visible to the user until the resulting {@linkcode DamagePhase}
|
* made visible to the user until the resulting {@linkcode DamagePhase}
|
||||||
* is invoked.
|
* is invoked.
|
||||||
*/
|
*/
|
||||||
const moveCategory = new Utils.IntegerHolder(move.category);
|
const moveCategory = new Utils.NumberHolder(move.category);
|
||||||
applyMoveAttrs(VariableMoveCategoryAttr, user, target, move, moveCategory);
|
applyMoveAttrs(VariableMoveCategoryAttr, user, target, move, moveCategory);
|
||||||
const hitResult = !isProtected ? target.apply(user, move, moveCategory.value) : HitResult.NO_EFFECT;
|
const hitResult = !isProtected ? target.apply(user, move, moveCategory.value) : HitResult.NO_EFFECT;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user