fix: 전투력보정에 unit이 제공되지 않음

This commit is contained in:
2022-02-20 15:13:39 +09:00
parent 240085834a
commit d8f4056f46
3 changed files with 4 additions and 6 deletions
+2 -1
View File
@@ -10,7 +10,8 @@ use sammo\ObjectTrigger;
class 전투력보정 extends BaseWarUnitTrigger{
protected $priority = ObjectTrigger::PRIORITY_BEGIN;
public function __construct(protected int|float $attackerWarPowerMultiplier, protected int|float $defenderWarPowerMultiplier = 1){
public function __construct(WarUnit $unit, protected int|float $attackerWarPowerMultiplier, protected int|float $defenderWarPowerMultiplier = 1){
$this->object = $unit;
}
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{