aboutsummaryrefslogtreecommitdiff
path: root/go/game
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-02-26 00:19:48 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-01-27 16:43:52 +0100
commitfe0cfc82c6cf3d3576de94e0f8b294761067af81 (patch)
tree0614d392bf60d684c1a07f261c48f632b4650393 /go/game
parentdb469da2704f703d15e81f5e44ba157c10a21e77 (diff)
downloadmuhqs-game-fe0cfc82c6cf3d3576de94e0f8b294761067af81.tar.gz
muhqs-game-fe0cfc82c6cf3d3576de94e0f8b294761067af81.zip
intermediate commit
* use names for pile perm choice * fix PocList hover segfault * prevent mysterius autogenerated playTargets segfault
Diffstat (limited to 'go/game')
-rw-r--r--go/game/cardImplementations.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/go/game/cardImplementations.go b/go/game/cardImplementations.go
index 52ffee98..66c77b18 100644
--- a/go/game/cardImplementations.go
+++ b/go/game/cardImplementations.go
@@ -522,7 +522,7 @@ func (i *frostPylonImpl) onLeaving(t *Tile) {
}
}
-type giganticHailImpl struct{
+type giganticHailImpl struct {
cardImplementation
}
@@ -586,6 +586,8 @@ func (*tentacleSlapImpl) onPlay(s *State, _ *Card, kraken *Player, _ *Targets) {
type unholyCannonballImpl struct{ cardImplementation }
+func (*unholyCannonballImpl) playTargets() TargetDesc { return INVALID_TARGET_DESC }
+
func (*unholyCannonballImpl) onPlay(s *State, _ *Card, kraken *Player, _ *Targets) {
krakenTiles := s.Map.FilterTiles(func(t *Tile) bool { return t.Raw == "the kraken" })
if len(krakenTiles) != 1 {