mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +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
|
||||
public boolean canPlayAI() {
|
||||
|
||||
//Dark Depths:
|
||||
CardList list = AllZoneUtil.getPlayerCardsInPlay(Constant.Player.Computer, "Dark Depths");
|
||||
list = list.filter(new CardListFilter(){
|
||||
public boolean addCard(Card crd)
|
||||
@@ -18356,6 +18358,22 @@ public class CardFactory_Creatures {
|
||||
setTargetCard(list.get(0));
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user