aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-08-24 13:27:42 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-24 13:27:42 +0200
commit1cdbad70ae11b988db883fb6433c088eba4f25b0 (patch)
tree6ddc5ec93066b49b424f6d43c82a2efacb181515
parent62edf951ac1cffa608f650203026b4d642ce4bc3 (diff)
downloadmuhqs-game-1cdbad70ae11b988db883fb6433c088eba4f25b0.tar.gz
muhqs-game-1cdbad70ae11b988db883fb6433c088eba4f25b0.zip
allow "*" to grant to any unit
-rw-r--r--go/game/areaEffect.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/go/game/areaEffect.go b/go/game/areaEffect.go
index 9260f8a7..2cb54826 100644
--- a/go/game/areaEffect.go
+++ b/go/game/areaEffect.go
@@ -44,7 +44,7 @@ func newCombinedAreaEffect(aoes []areaEffect) *dynamicAreaEffect {
func newGrantFullActionEffect(cardPath string, f ActionFuncPrototype, desc, tag string,
) *dynamicAreaEffect {
onEntering := func(p Permanent) {
- if p.Card().Path() != cardPath {
+ if cardPath != "*" && p.Card().Path() != cardPath {
return
}
@@ -55,7 +55,7 @@ func newGrantFullActionEffect(cardPath string, f ActionFuncPrototype, desc, tag
}
onLeaving := func(p Permanent) {
- if p.Card().Path() != cardPath {
+ if cardPath != "*" && p.Card().Path() != cardPath {
return
}
u := p.(*Unit)