- Made a more AI friendly fix for Briar Shield (removed FormerlyEnchanted).

This commit is contained in:
Sloth
2011-12-16 17:14:19 +00:00
parent 953d3e8355
commit 09690cf8e4

View File

@@ -1610,10 +1610,12 @@ public class AbilityFactory {
else if (defined.equals("Enchanted")) { else if (defined.equals("Enchanted")) {
c = hostCard.getEnchantingCard(); c = hostCard.getEnchantingCard();
} if (c == null
&& AbilityFactory.findRootAbility(sa) != null
else if (defined.equals("FormerlyEnchanted")) { && AbilityFactory.findRootAbility(sa).getPaidList("Sacrificed") != null
c = AbilityFactory.findRootAbility(sa).getPaidList("Sacrificed").get(0).getEnchantingCard(); && !AbilityFactory.findRootAbility(sa).getPaidList("Sacrificed").isEmpty()) {
c = AbilityFactory.findRootAbility(sa).getPaidList("Sacrificed").get(0).getEnchantingCard();
}
} }
else if (defined.equals("TopOfLibrary")) { else if (defined.equals("TopOfLibrary")) {