feat: 이민족 등장
This commit is contained in:
@@ -12,7 +12,13 @@ class AutoDeleteInvader extends \sammo\Event\Action{
|
||||
}
|
||||
|
||||
public function run(array $env){
|
||||
$db = DB::db();
|
||||
if(getNationStaticInfo($this->nationID)===null){
|
||||
$db->update('general', [
|
||||
'killturn'=>5
|
||||
], 'nation = 0 AND npc = 9');
|
||||
$eventID = Util::array_get($env['currentEventID']);
|
||||
$db->delete('event', 'id = %i', $eventID);
|
||||
return [__CLASS__, "Not Exists"];
|
||||
}
|
||||
$db = DB::db();
|
||||
|
||||
Reference in New Issue
Block a user