diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-08-24 13:27:42 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-24 13:27:42 +0200 |
| commit | 1cdbad70ae11b988db883fb6433c088eba4f25b0 (patch) | |
| tree | 6ddc5ec93066b49b424f6d43c82a2efacb181515 | |
| parent | 62edf951ac1cffa608f650203026b4d642ce4bc3 (diff) | |
| download | muhqs-game-1cdbad70ae11b988db883fb6433c088eba4f25b0.tar.gz muhqs-game-1cdbad70ae11b988db883fb6433c088eba4f25b0.zip | |
allow "*" to grant to any unit
| -rw-r--r-- | go/game/areaEffect.go | 4 |
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) |
