diff options
Diffstat (limited to 'go/game/cardImplementations.go')
| -rw-r--r-- | go/game/cardImplementations.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/go/game/cardImplementations.go b/go/game/cardImplementations.go index 67b52315..bc2f7414 100644 --- a/go/game/cardImplementations.go +++ b/go/game/cardImplementations.go @@ -172,6 +172,25 @@ func (*wormtongueImpl) fullActions(u *Unit) []*FullAction { return []*FullAction{a} } +// ====== Magic Set ====== + +type dieImpl struct{ cardImplementationBase } + +func (*dieImpl) playTargets() *TargetDesc { + desc := newTargetDesc("unit") + return &desc +} + +func (*dieImpl) onPlay(s *State, c *Card, p *Player, t *Targets) { + s.destroyPermanent(t.Cur().sel[0].(Permanent)) +} + +type ritualImpl struct{ cardImplementationBase } + +func (*ritualImpl) onPlay(s *State, c *Card, p *Player, t *Targets) { + p.gainResource(3) +} + // ====== Nautics Set ====== var fishTrapAoE areaEffect = newGrantFullActionEffect("nautics/fisher", @@ -432,6 +451,9 @@ func init() { "base/tower_shield": &towerShieldImpl{}, "base/wormtongue": &wormtongueImpl{}, + "magic/die!": &dieImpl{}, + "magic/ritual!": &ritualImpl{}, + "nautics/captain": &captainImpl{}, "nautics/fish_trap": &fishTrapImpl{aoe: fishTrapAoE}, "nautics/fisher": &fisherImpl{}, |
