mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Fixed a bug of AffinityForArtifactsAbility causing bug if artifact had an activated ability.
This commit is contained in:
parent
06163d6ac5
commit
469e9f3519
1 changed files with 5 additions and 3 deletions
|
@ -70,9 +70,11 @@ public class AffinityForArtifactsAbility extends SimpleStaticAbility implements
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void adjustCosts(Ability ability, Game game) {
|
public void adjustCosts(Ability ability, Game game) {
|
||||||
|
if (ability instanceof SpellAbility) {
|
||||||
int count = game.getBattlefield().getAllActivePermanents(filter, ability.getControllerId(), game).size();
|
int count = game.getBattlefield().getAllActivePermanents(filter, ability.getControllerId(), game).size();
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
CardUtil.adjustCost((SpellAbility)ability, count);
|
CardUtil.adjustCost((SpellAbility)ability, count);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue