game: 국가 임관 시, 기존 등용장 무효화
This commit is contained in:
@@ -7,7 +7,8 @@ use \sammo\{
|
||||
ActionLogger,
|
||||
GameConst, GameUnitConst,
|
||||
LastTurn,
|
||||
Command
|
||||
Command,
|
||||
ScoutMessage
|
||||
};
|
||||
|
||||
|
||||
@@ -178,6 +179,8 @@ class che_거병 extends Command\GeneralCommand{
|
||||
|
||||
$general->applyDB($db);
|
||||
|
||||
ScoutMessage::invalidateAll($general->getID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,8 +22,7 @@ use \sammo\Constraint\ConstraintHelper;
|
||||
use sammo\CityConst;
|
||||
use sammo\Enums\InheritanceKey;
|
||||
use sammo\MustNotBeReachedException;
|
||||
|
||||
|
||||
use sammo\ScoutMessage;
|
||||
|
||||
class che_랜덤임관 extends Command\GeneralCommand
|
||||
{
|
||||
@@ -284,6 +283,8 @@ class che_랜덤임관 extends Command\GeneralCommand
|
||||
tryUniqueItemLottery(genGenericUniqueRNGFromGeneral($general), $general, '랜덤 임관');
|
||||
$general->applyDB($db);
|
||||
|
||||
ScoutMessage::invalidateAll($general->getID());
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,8 @@ use \sammo\{
|
||||
GameConst,
|
||||
LastTurn,
|
||||
Command,
|
||||
KVStorage
|
||||
KVStorage,
|
||||
ScoutMessage
|
||||
};
|
||||
|
||||
use function \sammo\tryUniqueItemLottery;
|
||||
@@ -175,6 +176,8 @@ class che_임관 extends Command\GeneralCommand
|
||||
tryUniqueItemLottery(\sammo\genGenericUniqueRNGFromGeneral($general), $general);
|
||||
$general->applyDB($db);
|
||||
|
||||
ScoutMessage::invalidateAll($general->getID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user