* Spreading Seas - Fixed that not all existing land subtypes (e.g. Urza's Mine) were removed if a land was enchanted by Spreading Seas

This commit is contained in:
LevelX2 2015-10-28 10:54:59 +01:00
parent e1773b9ea0
commit a84a560327

View file

@ -47,12 +47,20 @@ public class BecomesBasicLandEnchantedEffect extends ContinuousEffectImpl {
protected final static ArrayList<String> allLandTypes = new ArrayList<>(); protected final static ArrayList<String> allLandTypes = new ArrayList<>();
static { static { // 205.3i
allLandTypes.add("Forest"); allLandTypes.add("Forest");
allLandTypes.add("Swamp"); allLandTypes.add("Swamp");
allLandTypes.add("Plains"); allLandTypes.add("Plains");
allLandTypes.add("Mountains"); allLandTypes.add("Mountains");
allLandTypes.add("Island"); allLandTypes.add("Island");
allLandTypes.add("Urza's");
allLandTypes.add("Mine");
allLandTypes.add("Power-Plant");
allLandTypes.add("Tower");
allLandTypes.add("Desert");
allLandTypes.add("Gate");
allLandTypes.add("Lair");
allLandTypes.add("Locus");
} }
protected ArrayList<String> landTypes = new ArrayList<>(); protected ArrayList<String> landTypes = new ArrayList<>();
@ -109,7 +117,7 @@ public class BecomesBasicLandEnchantedEffect extends ContinuousEffectImpl {
break; break;
case TypeChangingEffects_4: case TypeChangingEffects_4:
// subtypes are all removed by changing the subtype to a land type. // subtypes are all removed by changing the subtype to a land type.
permanent.getSubtype().clear(); permanent.getSubtype().removeAll(allLandTypes);
permanent.getSubtype().addAll(landTypes); permanent.getSubtype().addAll(landTypes);
break; break;
} }