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

Method getLastKnownZone

forge-game/src/main/java/forge/game/card/Card.java:7703–7705  ·  view source on GitHub ↗

Returns the last known zone information for the card. If the card is a LKI copy of another card, then it stores the relevant information in savedLastKnownZone, which is returned. If the card is not a LKI copy (e.g. an ordinary card in the game), it does not have this information and then the last kn

()

Source from the content-addressed store, hash-verified

7701 * @return last known zone of the card (either LKI, if present, or the current zone).
7702 */
7703 public final Zone getLastKnownZone() {
7704 return this.savedLastKnownZone != null ? this.savedLastKnownZone : getZone();
7705 }
7706
7707 /**
7708 * Sets the last known zone information for the card. Should only be used by LKI copies of cards

Callers 15

getAlternativeCostsMethod · 0.95
getReplacementListMethod · 0.95
canPayMethod · 0.95
checkRequirementMethod · 0.95
hasSuspendMethod · 0.95
isInZoneMethod · 0.95
isInZonesMethod · 0.95
cardHasPropertyMethod · 0.95
getZoneOfMethod · 0.80
checkZoneRestrictionsMethod · 0.80
getLKICopyMethod · 0.80

Calls 1

getZoneMethod · 0.95

Tested by

no test coverage detected