fix: 전투력보정에 unit이 제공되지 않음
This commit is contained in:
@@ -25,7 +25,7 @@ class che_불굴_상편 extends \sammo\BaseItem
|
||||
|
||||
$crewRatio = Util::valueFit($crew / ($leadership * 100), 0, 1);
|
||||
return new WarUnitTriggerCaller(
|
||||
new 전투력보정(1 + 0.5 * (1 - $crewRatio))
|
||||
new 전투력보정($unit, 1 + 0.5 * (1 - $crewRatio))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,15 +17,12 @@ class che_상성보정_과실주 extends \sammo\BaseItem{
|
||||
public function getBattlePhaseSkillTriggerList(WarUnit $unit): ?WarUnitTriggerCaller
|
||||
{
|
||||
$oppose = $unit->getOppose();
|
||||
if($oppose === null){
|
||||
return null;
|
||||
}
|
||||
$attackCoef = $unit->getCrewType()->getAttackCoef($oppose->getCrewType());
|
||||
if($attackCoef <= 1){
|
||||
return null;
|
||||
}
|
||||
return new WarUnitTriggerCaller(
|
||||
new 전투력보정(1.1, 0.9)
|
||||
new 전투력보정($unit, 1.1, 0.9)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user