Browse Source

move guard to abilities

main
openlegends 3 months ago
parent
commit
1a0562d9eb
  1. 8
      src/Test/Ability/Guard.php
  2. 8
      src/Test/Card/Goblin.php
  3. 4
      src/Test/Card/Mouse.php
  4. 4
      src/Test/Card/Rat.php

8
src/Test/Ability/Guard.php

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Ability;
class Guard extends \OpenLegends\Engine\Abstract\Ability
{}

8
src/Test/Card/Goblin.php

@ -12,6 +12,10 @@ class Goblin extends \OpenLegends\Engine\Abstract\Card @@ -12,6 +12,10 @@ class Goblin extends \OpenLegends\Engine\Abstract\Card
new \OpenLegends\Asset\Test\Ability\Lethal()
);
$this->addAbility(
new \OpenLegends\Asset\Test\Ability\Guard()
);
$this->addAttribute(
new \OpenLegends\Asset\Test\Attribute\Neutral()
);
@ -52,10 +56,6 @@ class Goblin extends \OpenLegends\Engine\Abstract\Card @@ -52,10 +56,6 @@ class Goblin extends \OpenLegends\Engine\Abstract\Card
3
);
$this->setGuard(
true
);
$this->setSilent(
false
);

4
src/Test/Card/Mouse.php

@ -48,10 +48,6 @@ class Mouse extends \OpenLegends\Engine\Abstract\Card @@ -48,10 +48,6 @@ class Mouse extends \OpenLegends\Engine\Abstract\Card
1
);
$this->setGuard(
false
);
$this->setSilent(
false
);

4
src/Test/Card/Rat.php

@ -48,10 +48,6 @@ class Rat extends \OpenLegends\Engine\Abstract\Card @@ -48,10 +48,6 @@ class Rat extends \OpenLegends\Engine\Abstract\Card
2
);
$this->setGuard(
false
);
$this->setSilent(
false
);

Loading…
Cancel
Save