diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-08-15 23:51:10 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-17 15:24:25 +0200 |
| commit | e0d61598b51ddeeca228897d91b08498fa4fc7da (patch) | |
| tree | a7fd1d463d76996243950149c7a4e34995437dd7 | |
| parent | 3092ae48144fba0b6282989f6c939e687d213dde (diff) | |
| download | muhqs-game-e0d61598b51ddeeca228897d91b08498fa4fc7da.tar.gz muhqs-game-e0d61598b51ddeeca228897d91b08498fa4fc7da.zip | |
reset the tile of a destroyed permanent to allow the processing of the pile drop
| -rw-r--r-- | go/game/state.go | 4 |
1 files changed, 3 insertions, 1 deletions
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) } |
