mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38: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:
@@ -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