mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +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.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -87,11 +88,6 @@ class CoatOfArmsEffect extends ContinuousEffectImpl {
|
|||
return new CoatOfArmsEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(Ability source, Game game) {
|
||||
super.init(source, game);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
List<Permanent> permanents = game.getBattlefield().getActivePermanents(filter, source.getControllerId(), game);
|
||||
|
@ -112,9 +108,11 @@ class CoatOfArmsEffect extends ContinuousEffectImpl {
|
|||
for (Permanent permanent : permanents) {
|
||||
if (!permanent.getId().equals(target.getId())) {
|
||||
for (String subtype : targetSubtype) {
|
||||
if (permanent.hasSubtype(subtype)) {
|
||||
amount++;
|
||||
break;
|
||||
if (!CardUtil.isNonCreatureSubtype(subtype)) {
|
||||
if (permanent.hasSubtype(subtype)) {
|
||||
amount++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue