1
This commit is contained in:
parent
fdd75b3f1f
commit
74d96cee1b
@ -394,6 +394,22 @@ class HeroController extends BaseAuthedController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
$idx = 0;
|
||||||
|
$found = false;
|
||||||
|
for ($i = 0; $i < kMaxHeroUpQualityNum; ++$i) {
|
||||||
|
$upHeroUniId = $this->_getV(TN_HERO_QUALITY_UP, $i);
|
||||||
|
if ($upHeroUniId == $heroUniId) {
|
||||||
|
$idx = $i;
|
||||||
|
$found = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!$found) {
|
||||||
|
$this->_rspErr(1, 'hero already upgrade');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (!$heroDb) {
|
if (!$heroDb) {
|
||||||
$this->_rspErr(1, 'hero does not exist');
|
$this->_rspErr(1, 'hero does not exist');
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user