game: 국가 임관 시, 기존 등용장 무효화

This commit is contained in:
2023-07-11 22:47:24 +10:00
parent 246751b4dd
commit 376aed9787
4 changed files with 15 additions and 5 deletions
@@ -9,7 +9,8 @@ use \sammo\{
LastTurn,
Command,
Json,
KVStorage
KVStorage,
ScoutMessage
};
use function sammo\getAllNationStaticInfo;
@@ -173,6 +174,8 @@ class che_장수대상임관 extends Command\GeneralCommand{
tryUniqueItemLottery(\sammo\genGenericUniqueRNGFromGeneral($general), $general);
$general->applyDB($db);
ScoutMessage::invalidateAll($general->getID());
return true;
}