diff --git a/server/gameserver/battledatacontext.cc b/server/gameserver/battledatacontext.cc index 6e9d7e78..68513e34 100644 --- a/server/gameserver/battledatacontext.cc +++ b/server/gameserver/battledatacontext.cc @@ -428,7 +428,7 @@ void BattleDataContext::ParseResult(a8::XObject& obj) if (obj.HasKey("hero_dto") && obj.At("hero_dto")->IsObject()) { hero_dto = obj.At("hero_dto"); hero_ability_->hero_uniid_ = hero_dto->Get("hero_uniid", ""); - hero_ability_->spec_skill_id = hero_dto->Get("skill_id", ""); + hero_ability_->spec_skill_id = obj.Get("skill_id", ""); hero_ability_->hero_dto = hero_dto; hero_lv_ = hero_dto->HasKey("hero_lv") ? hero_dto->Get("hero_lv").GetInt() : 1; const mt::Hero* meta = mt::Hero::GetById(hero_dto->Get("hero_id", ""));