|
@@ -32,18 +32,17 @@ class Info_Heros extends Object_ext {
|
|
|
if (!StlUtil::dictHasProperty($this->Dic, $heroId) && $mo->starLv == 1) {
|
|
|
$insHero = new Ins_Hero();
|
|
|
$insHero->Id = $heroId;
|
|
|
- $insHero->isUnlock = 0;
|
|
|
- if ($mo->heroDebris_need == null) {
|
|
|
+ $insHero->isUnlock = 0;
|
|
|
+ if ($mo->heroDebris_need == null) {
|
|
|
$insHero->isUnlock = 1;
|
|
|
- if($this->CurrentHeroId == 0){
|
|
|
- $this->CurrentHeroId = $heroId;
|
|
|
- }
|
|
|
- }
|
|
|
+ }
|
|
|
$this->Dic->$heroId = $insHero;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ if ($this->CurrentHeroId == 0) {
|
|
|
+ $this->CurrentHeroId = glc()->CreateUserGame_defaultHeroId;
|
|
|
+ }
|
|
|
//
|
|
|
// foreach ($heroConf as $heroId => $mo) {
|
|
|
// if(!StlUtil::dictHasProperty($this->Dic, $heroId) ){
|