Using common DynamicValue for Keep Watch. Small changes to Keyrunes.

This commit is contained in:
LevelX2 2013-01-09 00:30:09 +01:00
parent 871b20c537
commit f9b9338aac
3 changed files with 3 additions and 34 deletions

View file

@ -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);

View file

@ -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);

View file

@ -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";
}
}