mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Added some more AI functionality for Vampire Hexmage (it will try and kill planeswalkers now also).
This commit is contained in:
@@ -18343,6 +18343,8 @@ public class CardFactory_Creatures {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canPlayAI() {
|
public boolean canPlayAI() {
|
||||||
|
|
||||||
|
//Dark Depths:
|
||||||
CardList list = AllZoneUtil.getPlayerCardsInPlay(Constant.Player.Computer, "Dark Depths");
|
CardList list = AllZoneUtil.getPlayerCardsInPlay(Constant.Player.Computer, "Dark Depths");
|
||||||
list = list.filter(new CardListFilter(){
|
list = list.filter(new CardListFilter(){
|
||||||
public boolean addCard(Card crd)
|
public boolean addCard(Card crd)
|
||||||
@@ -18356,6 +18358,22 @@ public class CardFactory_Creatures {
|
|||||||
setTargetCard(list.get(0));
|
setTargetCard(list.get(0));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Get rid of Planeswalkers:
|
||||||
|
list = AllZoneUtil.getPlayerCardsInPlay(Constant.Player.Human);
|
||||||
|
list = list.filter(new CardListFilter(){
|
||||||
|
public boolean addCard(Card crd)
|
||||||
|
{
|
||||||
|
return crd.isPlaneswalker() && crd.getCounters(Counters.LOYALTY) >= 5;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (list.size()>0)
|
||||||
|
{
|
||||||
|
setTargetCard(list.get(0));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user