mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-29 10:49:29 +02:00
Turns out the old condition wasn't buggy. Probably mixed up another change I made.
This commit is contained in:
parent
505db2b504
commit
6a34262c10
@ -3969,10 +3969,8 @@ export class StatusCategoryOnAllyAttr extends VariableMoveCategoryAttr {
|
|||||||
*/
|
*/
|
||||||
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.IntegerHolder);
|
||||||
// Need to check for strict equality or something better than this.
|
|
||||||
const isAlly = (user.isPlayer() && target.isPlayer()) || (!user.isPlayer() && !target.isPlayer());
|
|
||||||
|
|
||||||
if (isAlly) {
|
if (user.getAlly() === target) {
|
||||||
category.value = MoveCategory.STATUS;
|
category.value = MoveCategory.STATUS;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user