This commit is contained in:
aozhiwei 2023-09-28 14:59:03 +08:00
parent 8e7873aa5d
commit 25e0ae1fff

View File

@ -806,6 +806,7 @@ Hero* Room::CreateHero(Creature* master,
hero->SetAttackDir(dir); hero->SetAttackDir(dir);
hero->team_id = team_id; hero->team_id = team_id;
hero->Initialize(); hero->Initialize();
hero->hero_level = hero->GetBattleContext()->GetHeroLevel();
AddToEntityHash(hero); AddToEntityHash(hero);
AddToMoveableHash(hero); AddToMoveableHash(hero);
grid_service->AddCreature(hero); grid_service->AddCreature(hero);