Browse Source

move guard to abilities

main
openlegends 9 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 @@
<?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
new \OpenLegends\Asset\Test\Ability\Lethal() new \OpenLegends\Asset\Test\Ability\Lethal()
); );
$this->addAbility(
new \OpenLegends\Asset\Test\Ability\Guard()
);
$this->addAttribute( $this->addAttribute(
new \OpenLegends\Asset\Test\Attribute\Neutral() new \OpenLegends\Asset\Test\Attribute\Neutral()
); );
@ -52,10 +56,6 @@ class Goblin extends \OpenLegends\Engine\Abstract\Card
3 3
); );
$this->setGuard(
true
);
$this->setSilent( $this->setSilent(
false false
); );

4
src/Test/Card/Mouse.php

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

4
src/Test/Card/Rat.php

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

Loading…
Cancel
Save