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