mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +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
|
||||
public void adjustCosts(Ability ability, Game game) {
|
||||
if (ability instanceof SpellAbility) {
|
||||
int count = game.getBattlefield().getAllActivePermanents(filter, ability.getControllerId(), game).size();
|
||||
if (count > 0) {
|
||||
CardUtil.adjustCost((SpellAbility)ability, count);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue