mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
* Coat of Arms - FIxed that the boost effect also worked with non creature types (e.g. Basic land types if some lands were animated).
This commit is contained in:
parent
b565b832b0
commit
949662de16
1 changed files with 6 additions and 8 deletions
|
@ -44,6 +44,7 @@ import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
|
import mage.util.CardUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -87,11 +88,6 @@ class CoatOfArmsEffect extends ContinuousEffectImpl {
|
||||||
return new CoatOfArmsEffect(this);
|
return new CoatOfArmsEffect(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void init(Ability source, Game game) {
|
|
||||||
super.init(source, game);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
List<Permanent> permanents = game.getBattlefield().getActivePermanents(filter, source.getControllerId(), game);
|
List<Permanent> permanents = game.getBattlefield().getActivePermanents(filter, source.getControllerId(), game);
|
||||||
|
@ -112,9 +108,11 @@ class CoatOfArmsEffect extends ContinuousEffectImpl {
|
||||||
for (Permanent permanent : permanents) {
|
for (Permanent permanent : permanents) {
|
||||||
if (!permanent.getId().equals(target.getId())) {
|
if (!permanent.getId().equals(target.getId())) {
|
||||||
for (String subtype : targetSubtype) {
|
for (String subtype : targetSubtype) {
|
||||||
if (permanent.hasSubtype(subtype)) {
|
if (!CardUtil.isNonCreatureSubtype(subtype)) {
|
||||||
amount++;
|
if (permanent.hasSubtype(subtype)) {
|
||||||
break;
|
amount++;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue