mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* 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:
parent
e1773b9ea0
commit
a84a560327
1 changed files with 10 additions and 2 deletions
|
@ -47,12 +47,20 @@ public class BecomesBasicLandEnchantedEffect extends ContinuousEffectImpl {
|
|||
|
||||
protected final static ArrayList<String> allLandTypes = new ArrayList<>();
|
||||
|
||||
static {
|
||||
static { // 205.3i
|
||||
allLandTypes.add("Forest");
|
||||
allLandTypes.add("Swamp");
|
||||
allLandTypes.add("Plains");
|
||||
allLandTypes.add("Mountains");
|
||||
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<>();
|
||||
|
@ -109,7 +117,7 @@ public class BecomesBasicLandEnchantedEffect extends ContinuousEffectImpl {
|
|||
break;
|
||||
case TypeChangingEffects_4:
|
||||
// subtypes are all removed by changing the subtype to a land type.
|
||||
permanent.getSubtype().clear();
|
||||
permanent.getSubtype().removeAll(allLandTypes);
|
||||
permanent.getSubtype().addAll(landTypes);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue