mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Fix GameStates starting with frozen stack if RE executes (#6213)
* Fix GameStates starting with frozen stack if RE executes * Fix NPE when facedown
This commit is contained in:
@@ -627,6 +627,7 @@ public abstract class GameState {
|
||||
}
|
||||
|
||||
game.getStack().setResolving(false);
|
||||
game.getStack().unfreezeStack();
|
||||
|
||||
// Advance to a certain phase, activating all triggered abilities
|
||||
if (advPhase != null) {
|
||||
|
||||
@@ -2482,8 +2482,9 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars, ITr
|
||||
sbLong.append(" (").append(inst.getReminderText()).append(")");
|
||||
} else if (keyword.equals("Gift")) {
|
||||
sbLong.append(keyword);
|
||||
if (inst.getHostCard() != null && inst.getHostCard().getFirstSpellAbility().hasAdditionalAbility("GiftAbility")) {
|
||||
sbLong.append(" ").append(inst.getHostCard().getFirstSpellAbility().getAdditionalAbility("GiftAbility").getParam("GiftDescription"));
|
||||
Trigger trig = inst.getTriggers().stream().findFirst().orElse(null);
|
||||
if (trig != null && trig.getCardState().getFirstSpellAbility().hasAdditionalAbility("GiftAbility")) {
|
||||
sbLong.append(" ").append(trig.getCardState().getFirstSpellAbility().getAdditionalAbility("GiftAbility").getParam("GiftDescription"));
|
||||
}
|
||||
sbLong.append("\r\n");
|
||||
} else if (keyword.startsWith("Starting intensity")) {
|
||||
|
||||
Reference in New Issue
Block a user