mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Using common DynamicValue for Keep Watch. Small changes to Keyrunes.
This commit is contained in:
parent
871b20c537
commit
f9b9338aac
3 changed files with 3 additions and 34 deletions
|
@ -71,7 +71,7 @@ public class DimirKeyrune extends CardImpl<DimirKeyrune> {
|
|||
|
||||
private class DimirKeyruneToken extends Token {
|
||||
DimirKeyruneToken() {
|
||||
super("", "a 2/2 blue and black Horror until end of turn and is unblockable this turn");
|
||||
super("Horror", "a 2/2 blue and black Horror until end of turn and is unblockable this turn");
|
||||
cardType.add(CardType.ARTIFACT);
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setBlue(true);
|
||||
|
|
|
@ -71,7 +71,7 @@ public class GruulKeyrune extends CardImpl<GruulKeyrune> {
|
|||
|
||||
private class GruulKeyruneToken extends Token {
|
||||
GruulKeyruneToken() {
|
||||
super("", "a 3/2 red and green Beast artifact creature with trample");
|
||||
super("Beast", "a 3/2 red and green Beast artifact creature with trample");
|
||||
cardType.add(CardType.ARTIFACT);
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setRed(true);
|
||||
|
|
|
@ -30,12 +30,9 @@ package mage.sets.judgment;
|
|||
import java.util.UUID;
|
||||
import mage.Constants.CardType;
|
||||
import mage.Constants.Rarity;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.AttackingCreatureCount;
|
||||
import mage.abilities.effects.common.DrawCardControllerEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.game.Game;
|
||||
import mage.game.combat.CombatGroup;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -62,31 +59,3 @@ public class KeepWatch extends CardImpl<KeepWatch> {
|
|||
return new KeepWatch(this);
|
||||
}
|
||||
}
|
||||
|
||||
class AttackingCreatureCount implements DynamicValue {
|
||||
|
||||
@Override
|
||||
public int calculate(Game game, Ability sourceAbility) {
|
||||
int count = 0;
|
||||
for (CombatGroup combatGroup : game.getCombat().getGroups()) {
|
||||
count += combatGroup.getAttackers().size();
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue copy() {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMessage() {
|
||||
return "attacking creature";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "one";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue