From e0d61598b51ddeeca228897d91b08498fa4fc7da Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 15 Aug 2025 23:51:10 +0200 Subject: reset the tile of a destroyed permanent to allow the processing of the pile drop --- go/game/state.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/go/game/state.go b/go/game/state.go index b58c0992..ad3ea815 100644 --- a/go/game/state.go +++ b/go/game/state.go @@ -657,12 +657,14 @@ func (s *LocalState) destroyPermanent(p Permanent) { t := TileOrContainingPermTile(p) leaveTileOrPile(p) + // Reset tile to format pile strings dependent on the permanents tile + p.SetTile(t) s.RemovePermanent(p) if pile := p.Pile(); len(pile) > 0 { dropAction := newPileDropAction(p, t, pile) prompt(p.Controller().Ctrl, - newTargetSelectionPrompt(dropAction, fmt.Sprintf("Drop %v's pile", p))) + newTargetSelectionPrompt(dropAction, fmt.Sprintf("Drop %s's pile", p))) s.declareAction(dropAction) } -- cgit v1.2.3