전투 엔진 버그 2차 수정

This commit is contained in:
2018-08-21 01:22:18 +09:00
parent d0ca46cfde
commit d8cc820572
6 changed files with 28 additions and 23 deletions
+7 -2
View File
@@ -556,7 +556,7 @@ class WarUnitGeneral extends WarUnit{
//계략
if($crewType->magicCoef){
$magicRatio = getGeneralIntel($general, true, true, true, false) / 100;
$magicRatio = getGeneralIntel($this->raw, true, true, true, false) / 100;
$magicRatio *= $crewType->magicCoef;
if($specialWar == 41){
@@ -931,7 +931,12 @@ class WarUnitGeneral extends WarUnit{
return $result;
}
function finishBattle(){
function finishBattle(){
if($this->isFinished){
return;
}
$this->isFinished = true;
$this->increaseVar('killcrew', $this->killed);
$this->increaseVar('deathcrew', $this->dead);