mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Added Changeling support to public static ArrayList<Card> getCardType(PlayerZone zone, String cardType), in case someone uses it in the future.
This commit is contained in:
@@ -16,11 +16,12 @@ public class PlayerZoneUtil
|
|||||||
for(int i = 0; i < zone.size(); i++)
|
for(int i = 0; i < zone.size(); i++)
|
||||||
{
|
{
|
||||||
c = zone.get(i);
|
c = zone.get(i);
|
||||||
if(c.getType().contains(cardType) /*|| c.getKeyword().contains("Changeling")*/ )
|
if(c.isType(cardType))
|
||||||
list.add(c);
|
list.add(c);
|
||||||
}
|
}
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ArrayList<Card> getUntappedCreatures(PlayerZone zone)
|
public static ArrayList<Card> getUntappedCreatures(PlayerZone zone)
|
||||||
{
|
{
|
||||||
ArrayList<Card> all = getCardType(zone, "Creature");
|
ArrayList<Card> all = getCardType(zone, "Creature");
|
||||||
@@ -32,6 +33,7 @@ public class PlayerZoneUtil
|
|||||||
|
|
||||||
return untapped;
|
return untapped;
|
||||||
}
|
}
|
||||||
|
|
||||||
static public boolean isCardInZone(PlayerZone pz, Card card)
|
static public boolean isCardInZone(PlayerZone pz, Card card)
|
||||||
{
|
{
|
||||||
if(card == null)
|
if(card == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user