fix: 은퇴용 유산 포인트 코드가 항상 적용되는 문제 수정

This commit is contained in:
2021-09-12 02:07:29 +09:00
parent d7a7751480
commit b8581e3cec
+1 -1
View File
@@ -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;