mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Merge branch 'master' into newmaster
This commit is contained in:
@@ -4052,6 +4052,10 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final StatBreakdown getUnswitchedPowerBreakdown() {
|
public final StatBreakdown getUnswitchedPowerBreakdown() {
|
||||||
|
// 208.3 A noncreature permanent has no power or toughness
|
||||||
|
if (isInPlay() && !isCreature()) {
|
||||||
|
return new StatBreakdown();
|
||||||
|
}
|
||||||
return new StatBreakdown(getCurrentPower(), getTempPowerBoost(), getPowerBonusFromCounters());
|
return new StatBreakdown(getCurrentPower(), getTempPowerBoost(), getPowerBonusFromCounters());
|
||||||
}
|
}
|
||||||
public final int getUnswitchedPower() {
|
public final int getUnswitchedPower() {
|
||||||
@@ -4111,6 +4115,10 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final StatBreakdown getUnswitchedToughnessBreakdown() {
|
public final StatBreakdown getUnswitchedToughnessBreakdown() {
|
||||||
|
// 208.3 A noncreature permanent has no power or toughness
|
||||||
|
if (isInPlay() && !isCreature()) {
|
||||||
|
return new StatBreakdown();
|
||||||
|
}
|
||||||
return new StatBreakdown(getCurrentToughness(), getTempToughnessBoost(), getToughnessBonusFromCounters());
|
return new StatBreakdown(getCurrentToughness(), getTempToughnessBoost(), getToughnessBonusFromCounters());
|
||||||
}
|
}
|
||||||
public final int getUnswitchedToughness() {
|
public final int getUnswitchedToughness() {
|
||||||
|
|||||||
Reference in New Issue
Block a user