Fully clean Blessing & Monarch

This commit is contained in:
tool4EvEr
2021-08-01 09:09:35 +02:00
parent 7a615c3a7c
commit c2e4b8fab0
2 changed files with 7 additions and 6 deletions

View File

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

View File

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