Fix AllOpponent targeting the wrong side
All checks were successful
Build / Build (push) Successful in 35s
All checks were successful
Build / Build (push) Successful in 35s
This commit is contained in:
@@ -21,8 +21,7 @@ public static class TargetResolver
|
|||||||
MoveTarget.All => GetAllTargets(battle),
|
MoveTarget.All => GetAllTargets(battle),
|
||||||
MoveTarget.AllAdjacentOpponent => GetAllAdjacentAndOpponent(battle, side, position),
|
MoveTarget.AllAdjacentOpponent => GetAllAdjacentAndOpponent(battle, side, position),
|
||||||
MoveTarget.AllAdjacent => GetAllAdjacent(battle, side, position),
|
MoveTarget.AllAdjacent => GetAllAdjacent(battle, side, position),
|
||||||
MoveTarget.AllAlly => battle.Sides[side].Pokemon.ToList(),
|
MoveTarget.AllAlly or MoveTarget.AllOpponent => battle.Sides[side].Pokemon.ToList(),
|
||||||
MoveTarget.AllOpponent => battle.Sides[GetOppositeSide(side)].Pokemon.ToList(),
|
|
||||||
_ => throw new ArgumentOutOfRangeException(nameof(target), target, null),
|
_ => throw new ArgumentOutOfRangeException(nameof(target), target, null),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user