mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
fix AI error in Traumatize.
This commit is contained in:
@@ -3744,8 +3744,7 @@ public class CardFactory_Sorceries {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canPlayAI() {
|
public boolean canPlayAI() {
|
||||||
Player player = getTargetPlayer();
|
PlayerZone lib = AllZone.getZone(Constant.Zone.Library, AllZone.HumanPlayer);
|
||||||
PlayerZone lib = AllZone.getZone(Constant.Zone.Library, player);
|
|
||||||
CardList libList = new CardList(lib.getCards());
|
CardList libList = new CardList(lib.getCards());
|
||||||
return libList.size() > 0;
|
return libList.size() > 0;
|
||||||
}
|
}
|
||||||
@@ -3767,6 +3766,8 @@ public class CardFactory_Sorceries {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};//SpellAbility
|
};//SpellAbility
|
||||||
|
|
||||||
|
spell.setChooseTargetAI(CardFactoryUtil.AI_targetHuman());
|
||||||
spell.setBeforePayMana(CardFactoryUtil.input_targetPlayer(spell));
|
spell.setBeforePayMana(CardFactoryUtil.input_targetPlayer(spell));
|
||||||
card.clearSpellAbility();
|
card.clearSpellAbility();
|
||||||
card.addSpellAbility(spell);
|
card.addSpellAbility(spell);
|
||||||
|
|||||||
Reference in New Issue
Block a user