forked from External/mage
Implemented Haazda Officer
This commit is contained in:
parent
155aa5ed03
commit
f239e8dd44
3 changed files with 52 additions and 5 deletions
|
|
@ -1,8 +1,6 @@
|
|||
|
||||
package mage.abilities.effects.common.continuous;
|
||||
|
||||
import java.util.Locale;
|
||||
import java.util.UUID;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
|
|
@ -17,8 +15,10 @@ import mage.game.permanent.Permanent;
|
|||
import mage.target.Target;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
import java.util.Locale;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class BoostTargetEffect extends ContinuousEffectImpl {
|
||||
|
|
@ -27,6 +27,10 @@ public class BoostTargetEffect extends ContinuousEffectImpl {
|
|||
private DynamicValue toughness;
|
||||
private boolean lockedIn;
|
||||
|
||||
public BoostTargetEffect(int power, int toughness) {
|
||||
this(power, toughness, Duration.EndOfTurn);
|
||||
}
|
||||
|
||||
public BoostTargetEffect(int power, int toughness, Duration duration) {
|
||||
this(new StaticValue(power), new StaticValue(toughness), duration, false);
|
||||
}
|
||||
|
|
@ -39,8 +43,8 @@ public class BoostTargetEffect extends ContinuousEffectImpl {
|
|||
* @param power
|
||||
* @param toughness
|
||||
* @param duration
|
||||
* @param lockedIn if true, power and toughness will be calculated only
|
||||
* once, when the ability resolves
|
||||
* @param lockedIn if true, power and toughness will be calculated only
|
||||
* once, when the ability resolves
|
||||
*/
|
||||
public BoostTargetEffect(DynamicValue power, DynamicValue toughness, Duration duration, boolean lockedIn) {
|
||||
super(duration, Layer.PTChangingEffects_7, SubLayer.ModifyPT_7c, isCanKill(toughness) ? Outcome.UnboostCreature : Outcome.BoostCreature);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue