From 80bcebc4f43124eae5e4b59649de8018cae2280c Mon Sep 17 00:00:00 2001 From: openlegends Date: Sun, 17 Mar 2024 00:44:44 +0200 Subject: [PATCH] add attack ability --- src/Test/Card/Goblin.php | 4 ++++ src/Test/Card/Mouse.php | 4 ++++ src/Test/Card/Rat.php | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/src/Test/Card/Goblin.php b/src/Test/Card/Goblin.php index d3835cd..4d035c5 100644 --- a/src/Test/Card/Goblin.php +++ b/src/Test/Card/Goblin.php @@ -18,6 +18,10 @@ class Goblin extends \OpenLegends\Engine\Abstract\Card new \OpenLegends\Asset\Test\Card\Ability\Guard() ); + $ability->add( + new \OpenLegends\Asset\Test\Card\Ability\Attack() + ); + $this->setAbility( $ability ); diff --git a/src/Test/Card/Mouse.php b/src/Test/Card/Mouse.php index 06ef8bb..09c118d 100644 --- a/src/Test/Card/Mouse.php +++ b/src/Test/Card/Mouse.php @@ -20,6 +20,10 @@ class Mouse extends \OpenLegends\Engine\Abstract\Card new \OpenLegends\Asset\Test\Card\Rarity\Common() ); + $this->setAbility( + new \OpenLegends\Asset\Test\Card\Ability\Attack() + ); + $this->setTitle( _('Mouse') ); diff --git a/src/Test/Card/Rat.php b/src/Test/Card/Rat.php index 91c260d..b261df6 100644 --- a/src/Test/Card/Rat.php +++ b/src/Test/Card/Rat.php @@ -20,6 +20,10 @@ class Rat extends \OpenLegends\Engine\Abstract\Card new \OpenLegends\Asset\Test\Card\Rarity\Common() ); + $this->setAbility( + new \OpenLegends\Asset\Test\Card\Ability\Attack() + ); + $this->setTitle( _('Rat') );