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-20 15:57:39 +0200 |
| commit | a82e95a886c857f1e44c225f936a71739e733427 (patch) | |
| tree | 0f64235e376ec2915fb443a0b8422b9aee81f6e6 | |
| parent | 3147be8b9829e9012512d7d78cf8b98f1f414d65 (diff) | |
| download | muhqs-game-a82e95a886c857f1e44c225f936a71739e733427.tar.gz muhqs-game-a82e95a886c857f1e44c225f936a71739e733427.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) } |
