mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Made a more AI friendly fix for Briar Shield (removed FormerlyEnchanted).
This commit is contained in:
@@ -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")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user