forked from External/mage
[PIP] and [WHO] card implementations (#12482)
* Last Night Together * Nanogene Conversion * Return the Past * Rose, Cutthroat Raider * Diamond City * Fix Apostrophe * Various fixes * Replace Diamond City and Celebration Watchers * LastNightTogether improvements, add hint to ReturnThePast * Add AttackedThisTurnOpponentsCount hint, ignore new failing Celebration test * Review fixes, also create ValueConditionHint for value hints with a conditional threshold * Comments improvements * Requested changes to make ValueConditionHint extend ConditionHint * single super call in ValueConditionHint constructor
This commit is contained in:
parent
e367aeae25
commit
2daa2b8820
24 changed files with 657 additions and 75 deletions
|
|
@ -4,6 +4,8 @@ package mage.abilities.dynamicvalue.common;
|
|||
import mage.abilities.Ability;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.hint.Hint;
|
||||
import mage.abilities.hint.ValueHint;
|
||||
import mage.game.Game;
|
||||
import mage.watchers.common.PlayersAttackedThisTurnWatcher;
|
||||
|
||||
|
|
@ -14,6 +16,7 @@ import mage.watchers.common.PlayersAttackedThisTurnWatcher;
|
|||
*/
|
||||
public enum AttackedThisTurnOpponentsCount implements DynamicValue {
|
||||
instance;
|
||||
private static final Hint hint = new ValueHint("the number of opponents you attacked this turn", instance);
|
||||
|
||||
@Override
|
||||
public int calculate(Game game, Ability sourceAbility, Effect effect) {
|
||||
|
|
@ -38,4 +41,8 @@ public enum AttackedThisTurnOpponentsCount implements DynamicValue {
|
|||
public String getMessage() {
|
||||
return "the number of opponents you attacked this turn";
|
||||
}
|
||||
|
||||
public static Hint getHint() {
|
||||
return hint;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue