mirror of
https://github.com/openlegends/asset-php.git
synced 2025-02-08 13:04:22 +00:00
move guard to abilities
This commit is contained in:
parent
c601def080
commit
1a0562d9eb
8
src/Test/Ability/Guard.php
Normal file
8
src/Test/Ability/Guard.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace OpenLegends\Asset\Test\Ability;
|
||||
|
||||
class Guard extends \OpenLegends\Engine\Abstract\Ability
|
||||
{}
|
@ -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
|
||||
3
|
||||
);
|
||||
|
||||
$this->setGuard(
|
||||
true
|
||||
);
|
||||
|
||||
$this->setSilent(
|
||||
false
|
||||
);
|
||||
|
@ -48,10 +48,6 @@ class Mouse extends \OpenLegends\Engine\Abstract\Card
|
||||
1
|
||||
);
|
||||
|
||||
$this->setGuard(
|
||||
false
|
||||
);
|
||||
|
||||
$this->setSilent(
|
||||
false
|
||||
);
|
||||
|
@ -48,10 +48,6 @@ class Rat extends \OpenLegends\Engine\Abstract\Card
|
||||
2
|
||||
);
|
||||
|
||||
$this->setGuard(
|
||||
false
|
||||
);
|
||||
|
||||
$this->setSilent(
|
||||
false
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user