fix file location in source tree

This commit is contained in:
xenohedron 2023-07-10 06:32:04 -04:00
parent 26ddf9d0b1
commit 3f346d791c

View file

@ -0,0 +1,27 @@
package mage.abilities.dynamicvalue.common;
import mage.abilities.Ability;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.effects.Effect;
import mage.game.Game;
import mage.game.permanent.Permanent;
public enum PermanentEnteringBattlefieldManaValue implements DynamicValue {
instance;
@Override
public int calculate(Game game, Ability source, Effect effect) {
Permanent permanent = (Permanent) effect.getValue("permanentEnteringBattlefield");
return permanent == null ? 0 : permanent.getManaValue();
}
@Override
public DynamicValue copy() {
return instance;
}
@Override
public String getMessage() {
return "that creature's mana value";
}
}