From 1cdbad70ae11b988db883fb6433c088eba4f25b0 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 24 Aug 2025 13:27:42 +0200 Subject: allow "*" to grant to any unit --- go/game/areaEffect.go | 4 ++-- 1 file 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) -- cgit v1.2.3