Removed unnecessary battlefield.count methods not considering player range. Changed cards that used the removed methods.

This commit is contained in:
LevelX2 2013-02-12 17:14:20 +01:00
parent c375d80682
commit f504a543e1
28 changed files with 83 additions and 101 deletions

View file

@ -27,9 +27,11 @@ public class AffinityEffect extends CostModificationEffectImpl<AffinityEffect> {
SpellAbility spellAbility = (SpellAbility)abilityToModify;
Mana mana = spellAbility.getManaCostsToPay().getMana();
if (mana.getColorless() > 0) {
int count = game.getBattlefield().count(filter, source.getControllerId(), game);
int count = game.getBattlefield().count(filter, source.getSourceId(), source.getControllerId(), game);
int newCount = mana.getColorless() - count;
if (newCount < 0) newCount = 0;
if (newCount < 0) {
newCount = 0;
}
mana.setColorless(newCount);
spellAbility.getManaCostsToPay().load(mana.toString());
return true;