mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
* Fixed a bug with time stamp order and change of basic land type (e.g. Blood Moon and Spreading Seas).
This commit is contained in:
parent
140672b8b3
commit
df98b4e0af
4 changed files with 106 additions and 25 deletions
|
|
@ -98,19 +98,29 @@ public class BecomesBasicLandEnchantedEffect extends ContinuousEffectImpl {
|
|||
for (String landType : landTypes) {
|
||||
switch (landType) {
|
||||
case "Swamp":
|
||||
permanent.addAbility(new BlackManaAbility(), source.getSourceId(), game);
|
||||
if (permanent.getSubtype().contains("Swamp")) { // type can be removed by other effect with newer timestamp, so no ability adding
|
||||
permanent.addAbility(new BlackManaAbility(), source.getSourceId(), game);
|
||||
}
|
||||
break;
|
||||
case "Mountain":
|
||||
permanent.addAbility(new RedManaAbility(), source.getSourceId(), game);
|
||||
if (permanent.getSubtype().contains("Mountain")) {
|
||||
permanent.addAbility(new RedManaAbility(), source.getSourceId(), game);
|
||||
}
|
||||
break;
|
||||
case "Forest":
|
||||
permanent.addAbility(new GreenManaAbility(), source.getSourceId(), game);
|
||||
if (permanent.getSubtype().contains("Forest")) {
|
||||
permanent.addAbility(new GreenManaAbility(), source.getSourceId(), game);
|
||||
}
|
||||
break;
|
||||
case "Island":
|
||||
permanent.addAbility(new BlueManaAbility(), source.getSourceId(), game);
|
||||
if (permanent.getSubtype().contains("Island")) {
|
||||
permanent.addAbility(new BlueManaAbility(), source.getSourceId(), game);
|
||||
}
|
||||
break;
|
||||
case "Plains":
|
||||
permanent.addAbility(new WhiteManaAbility(), source.getSourceId(), game);
|
||||
if (permanent.getSubtype().contains("Plains")) {
|
||||
permanent.addAbility(new WhiteManaAbility(), source.getSourceId(), game);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ public class Library implements Serializable {
|
|||
}
|
||||
|
||||
public List<UUID> getCardList() {
|
||||
return new ArrayList(library);
|
||||
return new ArrayList<>(library);
|
||||
}
|
||||
|
||||
public List<Card> getCards(Game game) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue