* BecomesCreatureTargetEffect - Fixed a bug that type changing effects (e.g. 1st ability of Nissan Worldwaker) did wrongly always overwrite all subtypes.

This commit is contained in:
LevelX2 2014-10-29 10:19:32 +01:00
parent 2e13255fd0
commit 0942e9140c

View file

@ -82,12 +82,19 @@ public class BecomesCreatureTargetEffect extends ContinuousEffectImpl {
switch (layer) {
case TypeChangingEffects_4:
if (sublayer == SubLayer.NA) {
permanent.getSubtype().clear();
if (token.getSubtype().size() > 0) {
permanent.getSubtype().addAll(token.getSubtype());
}
if (type == null) {
permanent.getSubtype().clear();
permanent.getSubtype().addAll(token.getSubtype());
permanent.getCardType().clear();
} else {
if (token.getSubtype().size() > 0) {
for (String subtype :token.getSubtype()) {
if (!permanent.getSubtype().contains(subtype)) {
permanent.getSubtype().add(subtype);
}
}
}
}
if (token.getCardType().size() > 0) {
for (CardType t : token.getCardType()) {