aboutsummaryrefslogtreecommitdiff
path: root/go/game/cardImplementations.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/game/cardImplementations.go')
-rw-r--r--go/game/cardImplementations.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/go/game/cardImplementations.go b/go/game/cardImplementations.go
index f7f765d5..0780d6f9 100644
--- a/go/game/cardImplementations.go
+++ b/go/game/cardImplementations.go
@@ -324,6 +324,17 @@ func (*moreImpl) onPlay(a *PlayAction) {
a.Controller().DrawN(2)
}
+type pierceImpl struct{ cardImplementationBase }
+
+func (*pierceImpl) playTargets() TargetDesc {
+ return newTargetDesc("unit")
+}
+
+func (*pierceImpl) onPlay(a *PlayAction) {
+ u := a.Target().Selection()[0].(*Unit)
+ u.Controller().gameState.addEotEffect(newTmpEffect(u, "-1 armor"))
+}
+
type mineImpl struct{ cardImplementationBase }
func (*mineImpl) onPlay(a *PlayAction) {
@@ -873,6 +884,7 @@ func init() {
"magic/heal!": &healImpl{},
"magic/mine!": &mineImpl{},
"magic/more!": &moreImpl{},
+ "magic/pierce!": &pierceImpl{},
"magic/ritual!": &ritualImpl{},
"magic/rush!": &rushImpl{},
"magic/select!": &selectImpl{},