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

Method isInLastRoom

forge-game/src/main/java/forge/game/card/Card.java:2317–2325  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2315 updateAbilityTextForView();
2316 }
2317 public boolean isInLastRoom() {
2318 for (final Trigger t : getTriggers()) {
2319 SpellAbility sa = t.getOverridingAbility();
2320 if (sa.getParam("RoomName").equals(currentRoom) && !sa.hasParam("NextRoom")) {
2321 return true;
2322 }
2323 }
2324 return false;
2325 }
2326
2327 public String getSector() {
2328 return sector;

Callers 2

getDungeonCardMethod · 0.80

Calls 5

getTriggersMethod · 0.95
getOverridingAbilityMethod · 0.80
equalsMethod · 0.45
getParamMethod · 0.45
hasParamMethod · 0.45

Tested by

no test coverage detected