fix: ProvideNPCTroopLeader는 국가가 없을땐 동작하지 않아야함
This commit is contained in:
@@ -35,6 +35,9 @@ class ProvideNPCTroopLeader extends \sammo\Event\Action
|
||||
foreach ($db->queryAllLists('SELECT nation,count(no) FROM general WHERE npc = 5 GROUP BY nation') as [$nationID, $NPCTroopLeaderCnt]) {
|
||||
$NPCTroopLeaderCntByNation[$nationID] = $NPCTroopLeaderCnt;
|
||||
};
|
||||
if(!$NPCTroopLeaderCntByNation){
|
||||
return;
|
||||
}
|
||||
|
||||
$year = $env['year'];
|
||||
$month = $env['month'];
|
||||
|
||||
Reference in New Issue
Block a user