버그 수정

This commit is contained in:
2019-04-21 16:27:57 +09:00
parent d46b3154cc
commit c7748934b8
5 changed files with 20 additions and 19 deletions
+3 -3
View File
@@ -237,13 +237,13 @@ class General implements iAction{
function kill($db){
$gameStor = KVStorage::getStorage($db, 'game_env');
$generalID = $this->getRaw('no');
$generalID = $this->getID();
$logger = $this->getLogger();
$generalName = $this->getName();
// 군주였으면 유지 이음
if($this->getRaw('level') == 12) {
if($this->getVar('level') == 12) {
nextRuler($this);
}
@@ -261,7 +261,7 @@ class General implements iAction{
], 'gen3=%i', $generalID);
// 부대 처리
$troopID = $this->getRaw('troop');
$troopID = $this->getVar('troop');
$troopLeaderID = $db->queryFirstField('SELECT `no` FROM troop WHERE troop=%i', $troopID);
if($troopLeaderID == $generalID){
//부대장일 경우