mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- AI should only target targetable creatures with Threaten.
This commit is contained in:
@@ -6975,7 +6975,8 @@ public class CardFactory implements NewConstants {
|
|||||||
//only use this card if creatures power is greater than 2
|
//only use this card if creatures power is greater than 2
|
||||||
CardList list = new CardList(AllZone.Human_Play.getCards());
|
CardList list = new CardList(AllZone.Human_Play.getCards());
|
||||||
for(int i = 0; i < list.size(); i++)
|
for(int i = 0; i < list.size(); i++)
|
||||||
if(2 < list.get(i).getNetAttack() && AllZone.Phase.getPhase().equals(Constant.Phase.Main1))
|
if(2 < list.get(i).getNetAttack() && AllZone.Phase.getPhase().equals(Constant.Phase.Main1) &&
|
||||||
|
CardFactoryUtil.canTarget(card, list.get(i)))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user