mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-27 18:52:19 +02:00
added resetContactFlag() descriptive method
This commit is contained in:
parent
f199549753
commit
ce78edcd7f
@ -4621,11 +4621,19 @@ export class ShellSideArmCategoryAttr extends VariableMoveCategoryAttr {
|
|||||||
move.makesContact();
|
move.makesContact();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
/** MoveFlags are not reset every turn so if this flag is set it needs to be reset if the move is a special attack */
|
this.resetContactFlag(move);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MoveFlags are not reset every turn so if this flag is set it needs to be reset if the move is a special attack
|
||||||
|
* This fucntion resets the {@linkcode MoveFlags.MAKES_CONTACT}
|
||||||
|
* @param move this move should be Shell Side Arm
|
||||||
|
*/
|
||||||
|
private resetContactFlag(move: Move): void {
|
||||||
if (move.hasFlag(MoveFlags.MAKES_CONTACT)) {
|
if (move.hasFlag(MoveFlags.MAKES_CONTACT)) {
|
||||||
move.makesContact(false);
|
move.makesContact(false);
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user