MCPcopy Create free account
hub / github.com/Card-Forge/forge / isInZones

Method isInZones

forge-game/src/main/java/forge/game/card/Card.java:6848–6851  ·  view source on GitHub ↗
(final List<ZoneType> zones)

Source from the content-addressed store, hash-verified

6846 }
6847
6848 public boolean isInZones(final List<ZoneType> zones) {
6849 Zone z = this.getLastKnownZone();
6850 return z != null && zones.contains(z.getZoneType());
6851 }
6852
6853 public boolean canBeDiscardedBy(SpellAbility sa, final boolean effect) {
6854 if (!isInZone(ZoneType.Hand)) {

Callers 3

commitCrimeCheckMethod · 0.80
applyPumpAllMethod · 0.80
resolveMethod · 0.80

Calls 3

getLastKnownZoneMethod · 0.95
getZoneTypeMethod · 0.95
containsMethod · 0.65

Tested by

no test coverage detected