1
This commit is contained in:
parent
201d7f0b44
commit
c3a9e20061
@ -377,6 +377,10 @@ class HeroController extends BaseAuthedController {
|
|||||||
$this->_rspErr(1, 'hero does not exist');
|
$this->_rspErr(1, 'hero does not exist');
|
||||||
return;
|
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) {
|
if ($heroDb['state'] != Hero::GETED_STATE) {
|
||||||
$this->_rspErr(3, 'Trial hero cannot operate');
|
$this->_rspErr(3, 'Trial hero cannot operate');
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user