mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
Updated some power-setting and toughness-setting effects to the correct layers
This commit is contained in:
parent
549103a2f0
commit
67bc2fb6bb
7 changed files with 93 additions and 23 deletions
|
|
@ -25,7 +25,6 @@
|
|||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
package mage.abilities.effects.common.continuous;
|
||||
|
||||
import mage.MageObject;
|
||||
|
|
@ -42,13 +41,16 @@ import mage.game.Game;
|
|||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
|
||||
public class SetPowerSourceEffect extends ContinuousEffectImpl {
|
||||
|
||||
private final DynamicValue amount;
|
||||
|
||||
public SetPowerSourceEffect(DynamicValue amount, Duration duration) {
|
||||
super(duration, Layer.PTChangingEffects_7, SubLayer.SetPT_7b, Outcome.BoostCreature);
|
||||
this(amount, duration, SubLayer.CharacteristicDefining_7a);
|
||||
}
|
||||
|
||||
public SetPowerSourceEffect(DynamicValue amount, Duration duration, SubLayer subLayer) {
|
||||
super(duration, Layer.PTChangingEffects_7, subLayer, Outcome.BoostCreature);
|
||||
this.amount = amount;
|
||||
staticText = "{this}'s power is equal to the number of " + amount.getMessage();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
package mage.abilities.effects.common.continuous;
|
||||
|
||||
import mage.MageObject;
|
||||
|
|
@ -46,7 +45,11 @@ public class SetToughnessSourceEffect extends ContinuousEffectImpl {
|
|||
private final DynamicValue amount;
|
||||
|
||||
public SetToughnessSourceEffect(DynamicValue amount, Duration duration) {
|
||||
super(duration, Layer.PTChangingEffects_7, SubLayer.SetPT_7b, Outcome.BoostCreature);
|
||||
this(amount, duration, SubLayer.CharacteristicDefining_7a);
|
||||
}
|
||||
|
||||
public SetToughnessSourceEffect(DynamicValue amount, Duration duration, SubLayer subLayer) {
|
||||
super(duration, Layer.PTChangingEffects_7, subLayer, Outcome.BoostCreature);
|
||||
this.amount = amount;
|
||||
staticText = "{this}'s toughness is equal to the number of " + amount.getMessage();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue