1
This commit is contained in:
parent
f482467242
commit
6bce4811b2
@ -172,6 +172,8 @@ class HeroController extends BaseAuthedController {
|
|||||||
$currLevelMeta = mt\HeroLevel::getByLevel($heroDb['hero_lv']);
|
$currLevelMeta = mt\HeroLevel::getByLevel($heroDb['hero_lv']);
|
||||||
if ($currLevelMeta) {
|
if ($currLevelMeta) {
|
||||||
$nextLevelMeta = mt\HeroLevel::getByLevel($heroDb['hero_lv'] + 1);
|
$nextLevelMeta = mt\HeroLevel::getByLevel($heroDb['hero_lv'] + 1);
|
||||||
|
$attrs = $heroDto['attr'];
|
||||||
|
mt\HeroLevelAttr::addRandAttr($heroDb['hero_lv'] + 1, $attrs);
|
||||||
if ($nextLevelMeta) {
|
if ($nextLevelMeta) {
|
||||||
Hero::update($heroUniId,
|
Hero::update($heroUniId,
|
||||||
array(
|
array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user