Turns out the old condition wasn't buggy. Probably mixed up another change I made.

This commit is contained in:
frutescens 2024-09-20 17:06:42 -07:00
parent 505db2b504
commit 6a34262c10

View File

@ -3969,10 +3969,8 @@ export class StatusCategoryOnAllyAttr extends VariableMoveCategoryAttr {
*/
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
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;
return true;
}