Browse Source

add attack ability

main
openlegends 9 months ago
parent
commit
80bcebc4f4
  1. 4
      src/Test/Card/Goblin.php
  2. 4
      src/Test/Card/Mouse.php
  3. 4
      src/Test/Card/Rat.php

4
src/Test/Card/Goblin.php

@ -18,6 +18,10 @@ class Goblin extends \OpenLegends\Engine\Abstract\Card @@ -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
);

4
src/Test/Card/Mouse.php

@ -20,6 +20,10 @@ class Mouse extends \OpenLegends\Engine\Abstract\Card @@ -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')
);

4
src/Test/Card/Rat.php

@ -20,6 +20,10 @@ class Rat extends \OpenLegends\Engine\Abstract\Card @@ -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')
);

Loading…
Cancel
Save