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

Method isBlocked

forge-game/src/main/java/forge/game/combat/Combat.java:364–367  ·  view source on GitHub ↗
(final Card attacker)

Source from the content-addressed store, hash-verified

362 }
363
364 public final boolean isBlocked(final Card attacker) {
365 AttackingBand band = getBandOfAttacker(attacker);
366 return band != null && Boolean.TRUE.equals(band.isBlocked());
367 }
368
369 // Some cards in Alpha may UNBLOCK an attacker, so second parameter is not always-true
370 public final void setBlocked(final Card attacker, boolean value) {

Callers 15

cardHasPropertyMethod · 0.95
addToCombatMethod · 0.95
resolveMethod · 0.95
shouldPumpCardMethod · 0.95
chooseProtectionTypeMethod · 0.95
isUsefulPumpKeywordMethod · 0.95
doMoveCounterLogicMethod · 0.95
getProtectCreaturesMethod · 0.95
checkApiLogicMethod · 0.95

Calls 3

getBandOfAttackerMethod · 0.95
isBlockedMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected