mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
- Improved AttachAI for Fortifications.
This commit is contained in:
@@ -933,6 +933,10 @@ public class AttachAi extends SpellAbilityAi {
|
|||||||
if (attachSource.getEquippingCard() != null && attachSource.getEquippingCard().getController() == aiPlayer || attachSource.hasSVar("DontEquip")) {
|
if (attachSource.getEquippingCard() != null && attachSource.getEquippingCard().getController() == aiPlayer || attachSource.hasSVar("DontEquip")) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
// Don't fortify if already fortifying
|
||||||
|
if (attachSource.getFortifyingCard() != null && attachSource.getFortifyingCard().getController() == aiPlayer) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
List<Card> list = aiPlayer.getGame().getCardsIn(tgt.getZone());
|
List<Card> list = aiPlayer.getGame().getCardsIn(tgt.getZone());
|
||||||
list = CardLists.getValidCards(list, tgt.getValidTgts(), sa.getActivatingPlayer(), attachSource);
|
list = CardLists.getValidCards(list, tgt.getValidTgts(), sa.getActivatingPlayer(), attachSource);
|
||||||
|
|||||||
Reference in New Issue
Block a user