mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- Made a more AI friendly fix for Briar Shield (removed FormerlyEnchanted).
This commit is contained in:
@@ -1610,11 +1610,13 @@ public class AbilityFactory {
|
||||
|
||||
else if (defined.equals("Enchanted")) {
|
||||
c = hostCard.getEnchantingCard();
|
||||
}
|
||||
|
||||
else if (defined.equals("FormerlyEnchanted")) {
|
||||
if (c == null
|
||||
&& AbilityFactory.findRootAbility(sa) != null
|
||||
&& AbilityFactory.findRootAbility(sa).getPaidList("Sacrificed") != null
|
||||
&& !AbilityFactory.findRootAbility(sa).getPaidList("Sacrificed").isEmpty()) {
|
||||
c = AbilityFactory.findRootAbility(sa).getPaidList("Sacrificed").get(0).getEnchantingCard();
|
||||
}
|
||||
}
|
||||
|
||||
else if (defined.equals("TopOfLibrary")) {
|
||||
final CardList lib = hostCard.getController().getCardsIn(Constant.Zone.Library);
|
||||
|
||||
Reference in New Issue
Block a user