@@ -1592,7 +1592,7 @@ def do(self, source, target, amount):
15921592 return target
15931593
15941594
1595- class SetTag (TargetedAction ):
1595+ class SetTags (TargetedAction ):
15961596 """
15971597 Sets targets' given tags.
15981598 """
@@ -1610,7 +1610,7 @@ def do(self, source, target, tags):
16101610 self .broadcast (source , EventListener .AFTER , target )
16111611
16121612
1613- class UnsetTag (TargetedAction ):
1613+ class UnsetTags (TargetedAction ):
16141614 """
16151615 Unset targets' given tags.
16161616 """
@@ -1625,10 +1625,10 @@ def do(self, source, target, tags):
16251625
16261626class GetTag (TargetedAction ):
16271627 TARGET = ActionArg ()
1628- TAGS = ActionArg ()
1628+ TAG = ActionArg ()
16291629
1630- def do (self , source , target , tags ):
1631- return [ target .tags [tag ] for tag in tags ]
1630+ def do (self , source , target , tag ):
1631+ return target .tags [tag ]
16321632
16331633
16341634class Silence (TargetedAction ):
@@ -1892,6 +1892,11 @@ def choose_target(self, source, card):
18921892 return source .game .random .choice (card .targets )
18931893
18941894 def do (self , source , card , targets ):
1895+ if source .type == CardType .MINION and (
1896+ source .dead or source .silenced or source .zone != Zone .PLAY
1897+ ):
1898+ return
1899+
18951900 player = source .controller
18961901 old_choice = player .choice
18971902 player .choice = None
0 commit comments