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

Method isBlocking

forge-game/src/main/java/forge/game/combat/Combat.java:972–983  ·  view source on GitHub ↗
(Card blocker)

Source from the content-addressed store, hash-verified

970 }
971
972 public boolean isBlocking(Card blocker) {
973 if (blockedBands.get().containsValue(blocker)) {
974 return true; // is blocking something at the moment
975 }
976
977 if (!blocker.isLKI()) {
978 return false;
979 }
980
981 CombatLki lki = lkiCache.get().get(blocker).getCombatLKI();
982 return null != lki && !lki.isAttacker; // was blocking something anyway
983 }
984
985 public boolean isBlocking(Card blocker, Card attacker) {
986 AttackingBand ab = getBandOfAttacker(attacker);

Callers 15

updateBlockingMethod · 0.95
cardHasPropertyMethod · 0.95
resolveMethod · 0.95
resolveMethod · 0.95
shouldPumpCardMethod · 0.95
chooseProtectionTypeMethod · 0.95
considerMethod · 0.95
canPlayMethod · 0.95
isUsefulCurseKeywordMethod · 0.95
isUsefulPumpKeywordMethod · 0.95

Calls 5

getBandOfAttackerMethod · 0.95
isLKIMethod · 0.80
getCombatLKIMethod · 0.80
getMethod · 0.65
containsMethod · 0.65

Tested by

no test coverage detected