diff --git a/src/Test/Card/Action/Heal.php b/src/Test/Card/Action/Heal.php new file mode 100644 index 0000000..65fcd86 --- /dev/null +++ b/src/Test/Card/Action/Heal.php @@ -0,0 +1,36 @@ +_card = $card; + } + + public function card( + \OpenLegends\Engine\Abstract\Card &$card, + ?int $power = null + ): void + { + $card->setHealth( + $card->getHealth() + ($power ? $power : $this->_card->getPower()) + ); + } + + public function player( + \OpenLegends\Engine\Abstract\Player &$player, + ?int $power = null + ): void + { + $player->setHealth( + $player->getHealth() + ($power ? $power : $this->_card->getPower()) + ); + } +} \ No newline at end of file