범용성을 목적으로 LazyVarUpdater를 분리
This commit is contained in:
@@ -971,10 +971,7 @@ class WarUnitGeneral extends WarUnit{
|
||||
* @param \MeekroDB $db
|
||||
*/
|
||||
function applyDB($db):bool{
|
||||
$updateVals = [];
|
||||
foreach(array_keys($this->updatedVar) as $key){
|
||||
$updateVals[$key] = $this->raw[$key];
|
||||
}
|
||||
$updateVals = $this->getUpdatedValues();
|
||||
|
||||
if(!$updateVals){
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user