forked from External/mage
Allowed getOpponents to filter out players who have lost the game. Fixes Corrupt mechanic, Mycosynth Fiend, etc
This commit is contained in:
parent
97b2ab0b26
commit
725c29182b
4 changed files with 11 additions and 8 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue