forked from External/mage
Fix perpetual use toughness as power of Walking bulwark (#10138)
* attempted fix * super constructors work like this? * better use of super and java * try this again * fix un-needed code * remove commented code * missed some * Simplify Constructors
This commit is contained in:
parent
171f0a238b
commit
e8892badf1
2 changed files with 8 additions and 3 deletions
|
|
@ -20,11 +20,17 @@ public class CombatDamageByToughnessEffect extends ContinuousEffectImpl {
|
|||
private final FilterCreaturePermanent filter;
|
||||
private final boolean onlyControlled;
|
||||
|
||||
|
||||
public CombatDamageByToughnessEffect(FilterCreaturePermanent filter, boolean onlyControlled) {
|
||||
super(Duration.WhileOnBattlefield, Layer.RulesEffects, SubLayer.NA, Outcome.Detriment);
|
||||
this(filter, onlyControlled, Duration.WhileOnBattlefield);
|
||||
}
|
||||
|
||||
public CombatDamageByToughnessEffect(FilterCreaturePermanent filter, boolean onlyControlled, Duration duration) {
|
||||
super(duration, Layer.RulesEffects, SubLayer.NA, Outcome.Detriment);
|
||||
this.filter = filter;
|
||||
this.onlyControlled = onlyControlled;
|
||||
}
|
||||
|
||||
|
||||
private CombatDamageByToughnessEffect(final CombatDamageByToughnessEffect effect) {
|
||||
super(effect);
|
||||
|
|
@ -39,7 +45,6 @@ public class CombatDamageByToughnessEffect extends ContinuousEffectImpl {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
// Change the rule
|
||||
FilterCreaturePermanent filterPermanent;
|
||||
if (onlyControlled) {
|
||||
filterPermanent = filter.copy();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue