mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-25 14:07:46 +00:00
fix quest battles which are using InstanceContent instead of QuestBattle.
This commit is contained in:
parent
616b12c695
commit
0d6a0719de
1 changed files with 8 additions and 1 deletions
|
@ -788,7 +788,14 @@ void Sapphire::World::Manager::TerritoryMgr::createAndJoinQuestBattle( Entity::P
|
|||
{
|
||||
auto qb = createQuestBattle( questBattleId );
|
||||
if( !qb )
|
||||
return;
|
||||
{
|
||||
auto& exdData = Common::Service< Data::ExdDataGenerated >::ref();
|
||||
auto instanceInfo = exdData.get< Sapphire::Data::InstanceContent >( questBattleId );
|
||||
if( !instanceInfo )
|
||||
return;
|
||||
qb = createInstanceContent( instanceInfo->order );
|
||||
qb->getAsInstanceContent()->bindPlayer( player.getId() );
|
||||
}
|
||||
|
||||
player.setInstance( qb );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue