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