Allowed getOpponents to filter out players who have lost the game. Fixes Corrupt mechanic, Mycosynth Fiend, etc

This commit is contained in:
PurpleCrowbar 2023-02-03 02:23:10 +00:00
parent 97b2ab0b26
commit 725c29182b
4 changed files with 11 additions and 8 deletions

View file

@ -16,7 +16,7 @@ public enum OpponentsPoisonCountersCount implements DynamicValue {
@Override
public int calculate(Game game, Ability sourceAbility, Effect effect) {
int amount = 0;
Set<UUID> playerList = game.getOpponents(sourceAbility.getControllerId());
Set<UUID> playerList = game.getOpponents(sourceAbility.getControllerId(), true);
for (UUID playerUUID : playerList) {
Player player = game.getPlayer(playerUUID);
if (player != null) {