game: 선양시에도 거병/수뇌/외교권자 페널티 검사

This commit is contained in:
2024-12-21 08:56:24 +00:00
parent 83b550adbe
commit 688de08feb
2 changed files with 13 additions and 3 deletions
+3 -3
View File
@@ -33,12 +33,12 @@ class NoPenalty extends Constraint{
/** @var PenaltyKey */
$checkKey = $this->arg;
$peneltyList = JSON::decode($this->general['penalty']);
if(!key_exists($checkKey->value, $peneltyList)){
$penaltyList = JSON::decode($this->general['penalty']);
if(!key_exists($checkKey->value, $penaltyList)){
return true;
}
$this->reason = "징계 사유: {$peneltyList[$checkKey->value]}";
$this->reason = "징계 사유: {$penaltyList[$checkKey->value]}";
return false;
}
}