| Total Complexity | 7 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 25% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | 1 | final class Heal implements ICombatAction { |
|
| 12 | public function getName(): string { |
||
| 14 | } |
||
| 15 | |||
| 16 | public function getPriority(): int { |
||
| 17 | 1 | return 1000; |
|
| 18 | } |
||
| 19 | |||
| 20 | public function shouldUse(CombatBase $combat, Character $character): bool { |
||
| 21 | 1 | return (in_array($character, $combat->findHealers()->toArray(), true) AND !is_null($combat->selectHealingTarget($character))); |
|
|
|
|||
| 22 | } |
||
| 23 | |||
| 24 | public function do(CombatBase $combat, Character $character): void { |
||
| 39 | } |
||
| 40 | } |
||
| 41 | ?> |