fix: inheritSkill 연산을 위해 aux 필요

This commit is contained in:
2021-09-12 20:08:44 +09:00
parent 28ad275382
commit 720fe3a6ef
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -623,7 +623,7 @@ function updateNationState()
$nation['nation'],
$targetKillTurn
);
$nationGenList = General::createGeneralObjListFromDB($nationGenIDList, ['belong', 'npc'], 2);
$nationGenList = General::createGeneralObjListFromDB($nationGenIDList, ['belong', 'npc', 'aux'], 2);
$chiefObj = null;
$uniqueLotteryWeightList = [];
+5 -3
View File
@@ -139,9 +139,11 @@ class General implements iAction{
$this->itemObjs['book'] = buildItemClass($raw['book']);
$this->itemObjs['item'] = buildItemClass($raw['item']);
$rawInheritBuff = $this->getAuxVar('inheritBuff');
if($rawInheritBuff !== null){
$this->inheritBuffObj = new TriggerInheritBuff($rawInheritBuff);
if(key_exists('aux', $this->raw)){
$rawInheritBuff = $this->getAuxVar('inheritBuff');
if($rawInheritBuff !== null){
$this->inheritBuffObj = new TriggerInheritBuff($rawInheritBuff);
}
}
}