mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Show storm count in card detail pane for storm cards
This commit is contained in:
@@ -5,6 +5,7 @@ import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
import forge.GuiBase;
|
||||
import forge.game.Game;
|
||||
import forge.game.GameEntity;
|
||||
import forge.game.card.Card;
|
||||
import forge.game.card.CounterType;
|
||||
@@ -497,6 +498,17 @@ public class CardDetailUtil {
|
||||
String mustBlockThese = Lang.joinHomogenous(card.getMustBlockCards());
|
||||
area.append("Must block " + mustBlockThese);
|
||||
}
|
||||
|
||||
//show current storm count for storm cards
|
||||
if (card.getKeyword().contains("Storm")) {
|
||||
Game game = GuiBase.getInterface().getGame();
|
||||
if (game != null) {
|
||||
if (area.length() != 0) {
|
||||
area.append("\n\n");
|
||||
}
|
||||
area.append("Current Storm Count: " + game.getStack().getCardsCastThisTurn().size());
|
||||
}
|
||||
}
|
||||
return area.toString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user