fix: 은퇴용 유산 포인트 코드가 항상 적용되는 문제 수정
This commit is contained in:
@@ -1158,7 +1158,7 @@ function resetInheritanceUser(int $userID, bool $isRebirth=false){
|
||||
$inheritStor = KVStorage::getStorage(DB::db(), "inheritance_{$userID}");
|
||||
$totalPoint = 0;
|
||||
foreach($inheritStor->getAll() as $key=>[$value,]){
|
||||
if(key_exists($key, $rebirthDegraded)){
|
||||
if($isRebirth && key_exists($key, $rebirthDegraded)){
|
||||
$value *= $rebirthDegraded[$key];
|
||||
}
|
||||
$totalPoint += $value;
|
||||
|
||||
Reference in New Issue
Block a user