|
@@ -605,16 +605,21 @@ class HeroProc {
|
|
|
$tag = false;
|
|
|
break;
|
|
|
}
|
|
|
+
|
|
|
+ if($store->yanling->$costUid->herouid != 0){
|
|
|
+ $tag = false;
|
|
|
+ break;
|
|
|
+ }
|
|
|
} else {
|
|
|
$tag = false;
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- my_Assert($tag, ErrCode::hero_yanling_notfound);
|
|
|
+ my_Assert($tag, ErrCode::hero_yanling_errorYanling);
|
|
|
$exp = 0;
|
|
|
foreach ($uidList as $costuid) {
|
|
|
- $confDic = GameConfig::item_yanling_getItem($store->yanling->$costUid->typeId);
|
|
|
+ $confDic = GameConfig::item_yanling_getItem($store->yanling->$costuid->typeId);
|
|
|
my_Assert(null != $confDic, ErrCode::hero_const_no_err);
|
|
|
$exp += $confDic->addStarExp;
|
|
|
StlUtil::dictRemove($store->yanling, $costuid);
|