This commit is contained in:
aozhiwei 2022-06-14 15:05:53 +08:00
parent 201d7f0b44
commit c3a9e20061

View File

@ -377,6 +377,10 @@ class HeroController extends BaseAuthedController {
$this->_rspErr(1, 'hero does not exist');
return;
}
if ($heroDb['advanced_count'] >= mt\Parameter::getVal('advence_limit', 0)) {
$this->_rspErr(1, 'hero does not exist');
return;
}
if ($heroDb['state'] != Hero::GETED_STATE) {
$this->_rspErr(3, 'Trial hero cannot operate');
return;