fix: 이벤트 조건 오류 수정
This commit is contained in:
@@ -57,7 +57,7 @@ class OpenNationBetting extends \sammo\Event\Action
|
||||
'target' => 'DESTROY_NATION',
|
||||
'priority' => 1000,
|
||||
'condition' => Json::encode(
|
||||
["RemainNation", $this->nationCnt],
|
||||
["RemainNation", "<=", $this->nationCnt],
|
||||
),
|
||||
'action' => Json::encode([
|
||||
["FinishNationBetting", $bettingID],
|
||||
|
||||
@@ -204,12 +204,16 @@ class RaiseInvader extends \sammo\Event\Action
|
||||
$nationObj->postBuild($env);
|
||||
refreshNationStaticInfo();
|
||||
$db->insert('event', [
|
||||
'target' => 'month',
|
||||
'priority' => 1000,
|
||||
'condition' => Json::encode(true),
|
||||
'action' => Json::encode([["AutoDeleteInvader", $invaderNationID]]),
|
||||
]);
|
||||
|
||||
}
|
||||
$db->insert('event', [
|
||||
'target' => 'month',
|
||||
'priority' => 1000,
|
||||
'condition' => Json::encode(true),
|
||||
'action' => Json::encode([["InvaderEnding"]]),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user