Fix counter and mirror coat implementation

This commit is contained in:
Flashfyre committed 2023-11-27 11:42:03 -05:00
1 parent 21c8a67b10
commit c34eb05083
3 files changed
+24 -7

No files matched your search

+1 -4
View File
@@ -2356,10 +2356,7 @@ export function getMoveTargets(user: Pokemon, move: Moves): MoveTargetSet {
set = [ opponents[Utils.randInt(opponents.length)] ];
break;
case MoveTarget.ATTACKER:
set = user.turnData.attacksReceived.length
? [ user.scene.getPokemonById(user.turnData.attacksReceived[0].sourceId) ]
: [];
break;
return { targets: [ -1 as BattlerIndex ], multiple: false };
case MoveTarget.NEAR_ALLY:
case MoveTarget.ALLY:
set = [ user.getAlly() ];