diff options
Diffstat (limited to 'go/game/permanent.go')
| -rw-r--r-- | go/game/permanent.go | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/go/game/permanent.go b/go/game/permanent.go index 78966cfe..ae94a657 100644 --- a/go/game/permanent.go +++ b/go/game/permanent.go @@ -188,15 +188,6 @@ func removePermanentFromPile(containing, rm Permanent) { rm.setContainingPerm(nil) } -func dropPile(containing Permanent) { - for _, p := range containing.Pile() { - p.onDrop(p) - p.setContainingPerm(nil) - } - - containing.clearPile() -} - func enterTile(p Permanent, t *Tile) { p.SetTile(t) t.entering(p) @@ -212,6 +203,13 @@ func enterTileOrPile(p Permanent, t *Tile) { } } +func _leaveTile(p Permanent) { + if p.Tile() != nil { + p.Card().Impl.onLeaving(p.Tile()) + p.Tile().leaving(p) + } +} + func leaveTile(p Permanent) { if p.Tile() != nil { p.Card().Impl.onLeaving(p.Tile()) |
