forked from External/mage
- Fixed #5931
This commit is contained in:
parent
bf5e603fcb
commit
30e8fec8df
4 changed files with 8 additions and 9 deletions
|
|
@ -30,7 +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);
|
||||
//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
|
||||
int newCount = mana.getGeneric() - count;
|
||||
if (newCount < 0) {
|
||||
newCount = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue