From 57cb023f78c1e68a990ab66760886b38388eee33 Mon Sep 17 00:00:00 2001 From: jeffwadsworth Date: Fri, 6 Dec 2019 14:16:32 -0600 Subject: [PATCH] - Fixed an issue with AffinityEffect and multiplayer games. See #5931 --- .../java/mage/abilities/effects/common/AffinityEffect.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mage/src/main/java/mage/abilities/effects/common/AffinityEffect.java b/Mage/src/main/java/mage/abilities/effects/common/AffinityEffect.java index a11f5967fb7..f3d6e14290c 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/AffinityEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/AffinityEffect.java @@ -30,8 +30,8 @@ public class AffinityEffect extends CostModificationEffectImpl { SpellAbility spellAbility = (SpellAbility)abilityToModify; Mana mana = spellAbility.getManaCostsToPay().getMana(); if (mana.getGeneric() > 0) { - //int count = game.getBattlefield().count(filter, source.getSourceId(), source.getControllerId(), game); // this doesn't work with Sen Triplets - int count = game.getBattlefield().getAllActivePermanents(filter, source.getControllerId(), game).size(); // this works with Sen Triplets + // the following works with Sen Triplets and in multiplayer games + int count = game.getBattlefield().getActivePermanents(filter, abilityToModify.getControllerId(), source.getId(), game).size(); int newCount = mana.getGeneric() - count; if (newCount < 0) { newCount = 0;