mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
fix file location in source tree
This commit is contained in:
parent
26ddf9d0b1
commit
3f346d791c
1 changed files with 0 additions and 0 deletions
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue