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

Method getNetPower

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

Source from the content-addressed store, hash-verified

4493 return getUnswitchedPowerBreakdown();
4494 }
4495 public final int getNetPower() {
4496 if (getAmountOfKeyword("CARDNAME's power and toughness are switched") % 2 != 0) {
4497 return getUnswitchedToughness();
4498 }
4499 return getUnswitchedPower();
4500 }
4501
4502 public final int getCurrentToughness() {
4503 int total = getBaseToughness();

Callers 15

performTestMethod · 0.95
canTargetMethod · 0.95
getLethalMethod · 0.95
resolveMethod · 0.95
resolveMethod · 0.95
resolveMethod · 0.95
resolveMethod · 0.95
testStaticAbilitiesMethod · 0.95
testManifestMethod · 0.95

Calls 3

getAmountOfKeywordMethod · 0.95
getUnswitchedPowerMethod · 0.95

Tested by 14

testStaticAbilitiesMethod · 0.76
testManifestMethod · 0.76
testDashMethod · 0.76
testTokenAbilitiesMethod · 0.76
testMarkedDamageMethod · 0.76
testTransformMethod · 0.76
testEnKorMethod · 0.76
testRaziaMethod · 0.76
testRazia2Method · 0.76
testDeathsShadowMethod · 0.76