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
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
); );

4
src/Test/Card/Mouse.php

@ -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')
); );

4
src/Test/Card/Rat.php

@ -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')
); );

Loading…
Cancel
Save