2ns ability of Sovereigns of Lost Alara scripted. Thank you, Swordshine

This commit is contained in:
Maxmtg
2013-06-02 15:34:47 +00:00
parent bf5bd91e9a
commit 11061585da
3 changed files with 15 additions and 7 deletions

View File

@@ -5429,9 +5429,15 @@ public class Card extends GameEntity implements Comparable<Card> {
if (!source.equals(this.enchanting)) {
return false;
}
} else if (property.startsWith("CanEnchantSource")) {
if (!source.canBeEnchantedBy(this)) {
return false;
} else if (property.startsWith("CanEnchant")) {
final String restriction = property.substring(10);
if (restriction.equals("Remembered")) {
for (final Object rem : source.getRemembered()) {
if (!(rem instanceof Card) || !((Card) rem).canBeEnchantedBy(this))
return false;
}
} else if (restriction.equals("Source")) {
if (!source.canBeEnchantedBy(this)) return false;
}
} else if (property.startsWith("CanBeEnchantedBy")) {
if (property.substring(16).equals("Targeted")) {

View File

@@ -305,9 +305,9 @@ public class PhaseHandler implements java.io.Serializable {
CombatUtil.executeExaltedAbility(game, attacker, exaltedMagnitude, card);
}
if ("Sovereigns of Lost Alara".equals(card.getName())) {
CombatUtil.souverignsOfAlara2ndAbility(game, attacker);
}
// if ("Sovereigns of Lost Alara".equals(card.getName())) {
// CombatUtil.souverignsOfAlara2ndAbility(game, attacker);
// }
}
}