From 6bce4811b2a33e2a361f2ab2eda58076ab3b403c Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 14 Jun 2022 10:05:52 +0800 Subject: [PATCH] 1 --- webapp/controller/HeroController.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index 85f8aaae..e790f9b8 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -172,6 +172,8 @@ class HeroController extends BaseAuthedController { $currLevelMeta = mt\HeroLevel::getByLevel($heroDb['hero_lv']); if ($currLevelMeta) { $nextLevelMeta = mt\HeroLevel::getByLevel($heroDb['hero_lv'] + 1); + $attrs = $heroDto['attr']; + mt\HeroLevelAttr::addRandAttr($heroDb['hero_lv'] + 1, $attrs); if ($nextLevelMeta) { Hero::update($heroUniId, array(