mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
2ns ability of Sovereigns of Lost Alara scripted. Thank you, Swordshine
This commit is contained in:
@@ -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")) {
|
||||
|
||||
@@ -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);
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user