forked from External/mage
Implement [M3C] Blaster Hulk/Create EnergySpentOrLostThisTurnCount and update Izzet Generatorium (#12426)
* Implement-M3C-Blaster-Hulk * Update BlasterHulk.java * Update BlasterHulk to fix number of targets --------- Co-authored-by: Grath <1895280+Grath@users.noreply.github.com>
This commit is contained in:
parent
f6d7ede7e5
commit
9f1031f286
5 changed files with 152 additions and 63 deletions
|
|
@ -0,0 +1,31 @@
|
|||
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.watchers.common.EnergySpentOrLostWatcher;
|
||||
|
||||
public enum EnergySpentOrLostThisTurnCount implements DynamicValue {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public int calculate(Game game, Ability sourceAbility, Effect effect) {
|
||||
return EnergySpentOrLostWatcher.getAmountEnergyLostOrSpentThisTurn(game, sourceAbility.getControllerId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnergySpentOrLostThisTurnCount copy() {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMessage() {
|
||||
return "{E} spent or lost this turn";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "X";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue