mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Fully clean Blessing & Monarch
This commit is contained in:
@@ -49,6 +49,7 @@ public class RestartGameEffect extends SpellAbilityEffect {
|
||||
game.clearCounterAddedThisTurn();
|
||||
game.resetPlayersAttackedOnNextTurn();
|
||||
game.resetPlayersAttackedOnNextTurn();
|
||||
game.setMonarch(null);
|
||||
GameAction action = game.getAction();
|
||||
|
||||
for (Player p: players) {
|
||||
@@ -59,6 +60,7 @@ public class RestartGameEffect extends SpellAbilityEffect {
|
||||
p.setLandsPlayedLastTurn(0);
|
||||
p.resetCommanderStats();
|
||||
p.resetCompletedDungeons();
|
||||
p.setBlessing(false);
|
||||
|
||||
CardCollection newLibrary = new CardCollection(p.getCardsIn(restartZones, false));
|
||||
List<Card> filteredCards = null;
|
||||
@@ -111,4 +113,3 @@ public class RestartGameEffect extends SpellAbilityEffect {
|
||||
return TextUtil.fastReplace(desc, "CARDNAME", sa.getHostCard().getName());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3221,21 +3221,21 @@ public class Player extends GameEntity implements Comparable<Player> {
|
||||
}
|
||||
|
||||
public void updateKeywordCardAbilityText() {
|
||||
if(getKeywordCard() == null)
|
||||
if (getKeywordCard() == null)
|
||||
return;
|
||||
final PlayerZone com = getZone(ZoneType.Command);
|
||||
keywordEffect.setText("");
|
||||
keywordEffect.updateAbilityTextForView();
|
||||
boolean headerAdded = false;
|
||||
StringBuilder kw = new StringBuilder();
|
||||
for(KeywordInterface k : keywords) {
|
||||
if(!headerAdded) {
|
||||
for (KeywordInterface k : keywords) {
|
||||
if (!headerAdded) {
|
||||
headerAdded = true;
|
||||
kw.append(this.getName()).append(" has: \n");
|
||||
}
|
||||
kw.append(k).append("\n");
|
||||
}
|
||||
if(!kw.toString().isEmpty()) {
|
||||
if (!kw.toString().isEmpty()) {
|
||||
keywordEffect.setText(trimKeywords(kw.toString()));
|
||||
keywordEffect.updateAbilityTextForView();
|
||||
}
|
||||
@@ -3275,7 +3275,7 @@ public class Player extends GameEntity implements Comparable<Player> {
|
||||
|
||||
final PlayerZone com = getZone(ZoneType.Command);
|
||||
|
||||
if(bless) {
|
||||
if (bless) {
|
||||
blessingEffect = new Card(game.nextCardId(), null, game);
|
||||
blessingEffect.setOwner(this);
|
||||
blessingEffect.setImageKey("t:blessing");
|
||||
|
||||
Reference in New Issue
Block a user