add attack ability

This commit is contained in:
openlegends 2024-03-17 00:44:44 +02:00
parent 692cf3567c
commit 80bcebc4f4
3 changed files with 12 additions and 0 deletions

View File

@ -18,6 +18,10 @@ class Goblin extends \OpenLegends\Engine\Abstract\Card
new \OpenLegends\Asset\Test\Card\Ability\Guard() new \OpenLegends\Asset\Test\Card\Ability\Guard()
); );
$ability->add(
new \OpenLegends\Asset\Test\Card\Ability\Attack()
);
$this->setAbility( $this->setAbility(
$ability $ability
); );

View File

@ -20,6 +20,10 @@ class Mouse extends \OpenLegends\Engine\Abstract\Card
new \OpenLegends\Asset\Test\Card\Rarity\Common() new \OpenLegends\Asset\Test\Card\Rarity\Common()
); );
$this->setAbility(
new \OpenLegends\Asset\Test\Card\Ability\Attack()
);
$this->setTitle( $this->setTitle(
_('Mouse') _('Mouse')
); );

View File

@ -20,6 +20,10 @@ class Rat extends \OpenLegends\Engine\Abstract\Card
new \OpenLegends\Asset\Test\Card\Rarity\Common() new \OpenLegends\Asset\Test\Card\Rarity\Common()
); );
$this->setAbility(
new \OpenLegends\Asset\Test\Card\Ability\Attack()
);
$this->setTitle( $this->setTitle(
_('Rat') _('Rat')
); );