버그 수정

This commit is contained in:
2020-04-28 01:50:25 +09:00
parent a1fd1acb86
commit 12f75688ff
6 changed files with 23 additions and 57 deletions
+2 -2
View File
@@ -238,14 +238,14 @@ class WarUnit{
$warPower /= $oppose->getComputedTrain();
if($this instanceof WarUnitGeneral){
$genDexAtt = getGenDex($this->getRaw(), $this->getCrewType()->id);
$genDexAtt = $general->getDex($this->getCrewType());
}
else{
$genDexAtt = ($this->cityRate - 60) * 7200;
}
if($this instanceof WarUnitGeneral){
$oppDexDef = getGenDex($oppose->getRaw(), $this->getCrewType()->id);
$oppDexDef = $opposeGeneral->getDex($this->getCrewType());
}
else{
$oppDexDef = ($this->cityRate - 60) * 7200;