mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +00:00
- Fixed #9177
This commit is contained in:
parent
5aa20f3e50
commit
009f53844a
1 changed files with 3 additions and 3 deletions
|
@ -48,21 +48,21 @@ public enum DesertControlledOrGraveyardCondition implements Condition {
|
||||||
public String getText(Game game, Ability ability) {
|
public String getText(Game game, Ability ability) {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
if (game.getBattlefield().contains(filter, ability, game, 1)) {
|
if (game.getBattlefield().contains(filter, ability, game, 1)) {
|
||||||
sb.append("You control a Desert");
|
sb.append("You control a Desert.");
|
||||||
}
|
}
|
||||||
Player player = game.getPlayer(ability.getControllerId());
|
Player player = game.getPlayer(ability.getControllerId());
|
||||||
if (player != null && player.getGraveyard().count(filter2, game) > 0) {
|
if (player != null && player.getGraveyard().count(filter2, game) > 0) {
|
||||||
if (sb.length() > 0) {
|
if (sb.length() > 0) {
|
||||||
sb.append("<br>");
|
sb.append("<br>");
|
||||||
}
|
}
|
||||||
sb.append("You have a Desert card in your graveyard");
|
sb.append("You have a Desert card in your graveyard.");
|
||||||
}
|
}
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Hint copy() {
|
public Hint copy() {
|
||||||
return null;
|
return this;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue