1
This commit is contained in:
parent
cf3b270c20
commit
4b92288a45
@ -401,20 +401,6 @@ class HeroController extends BaseAuthedController {
|
|||||||
$this->_rspErr(3, $this->_getLackItemErrMsg($lackItem));
|
$this->_rspErr(3, $this->_getLackItemErrMsg($lackItem));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$baseAttrs = mt\Hero::getHeroAttr($heroMeta);
|
|
||||||
mt\AttrHelper::mergeAttr($baseAttrs, Bag::getAttrs());
|
|
||||||
$attrs = emptyReplace(json_decode($heroDb['rand_attr'], true), array());
|
|
||||||
{
|
|
||||||
$obtainAttrs = mt\HeroQuality::getRandAttr($nextQualityMeta);
|
|
||||||
mt\AttrHelper::mergeAttr($attrs, $obtainAttrs);
|
|
||||||
}
|
|
||||||
{
|
|
||||||
$ret = mt\HeroLevel::addRandAttr($nextLevelMeta, $baseAttrs, $attrs);
|
|
||||||
if (!$ret) {
|
|
||||||
$this->_rspErr(2, 'server internal error');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$this->_decItems($costItems);
|
$this->_decItems($costItems);
|
||||||
Hero::update($heroUniId,
|
Hero::update($heroUniId,
|
||||||
array(
|
array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user