Trainers switch out their Pokemon when at a disadvantage
This commit is contained in:
1 parent
f49a3e5127
commit
8c4f336cd6
4 files changed
+66
-9
No files matched your search
@@ -1737,6 +1737,10 @@ export class ForceSwitchOutAttr extends MoveEffectAttr {
|
||||
return (!player && !user.scene.currentBattle.battleType) || party.filter(p => !p.isFainted()).length > user.scene.currentBattle.getBattlerCount();
|
||||
};
|
||||
}
|
||||
|
||||
getUserBenefitScore(user: Pokemon, target: Pokemon, move: Move): number {
|
||||
return -100; // Overridden in switch logic
|
||||
}
|
||||
}
|
||||
|
||||
export class CopyTypeAttr extends MoveEffectAttr {
|
||||
|
||||
Reference in new issue
Block a user