|
@@ -77,7 +77,7 @@ discard block |
|
|
block discarded – undo |
|
77
|
77
|
$action = $attacker->getTalents()->filterAttacks()->getIterator()->current(); // todo |
|
78
|
78
|
} |
|
79
|
79
|
|
|
80
|
|
- $damage = match (true) { |
|
|
80
|
+ $damage = match(true) { |
|
81
|
81
|
$action instanceof MeleeAttack => (new Damage( |
|
82
|
82
|
$action->getDamage($attacker->getWeapon() ?? throw FightException::weaponRequired())->get() |
|
83
|
83
|
))->increaseBy($attacker->getStrength()), |
|
@@ -101,7 +101,7 @@ discard block |
|
|
block discarded – undo |
|
101
|
101
|
->isGreaterThan($target->getInitiative()); |
|
102
|
102
|
} |
|
103
|
103
|
|
|
104
|
|
- private function askForAction(Player $player): Attack|Usable |
|
|
104
|
+ private function askForAction(Player $player): Attack | Usable |
|
105
|
105
|
{ |
|
106
|
106
|
$action = $this->playerAction->askForChoice( |
|
107
|
107
|
'Select action', |
Please login to merge, or discard this patch.