전투 엔진 버그 2차 수정

This commit is contained in:
2018-08-21 01:22:18 +09:00
parent e6595a5e77
commit 52d82b141f
6 changed files with 28 additions and 23 deletions
+6 -1
View File
@@ -85,7 +85,12 @@ class WarUnitCity extends WarUnit{
}
function finishBattle(){
$this->updateVar('def', Util::round($this->hp / 10));
if($this->isFinished){
return;
}
$this->isFinished = true;
$this->updateVar('def', Util::round($this->getHP() / 10));
$this->updateVar('wall', Util::round($this->getVar('wall')));
//NOTE: 전투로 인한 사망자는 여기서 처리하지 않음