1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-28 07:07:45 +00:00

Do not count Chasing Shadows as complete if mobs are killed in a certain order even if more adds are due to spawn

This commit is contained in:
mordred 2019-04-18 07:52:45 +02:00
parent 7844d0b463
commit 033a03b98f

View file

@ -67,13 +67,6 @@ public:
return;
}
if( instance.getCountEnemyBNpc() == 0 && successCalled == 0 )
{
instance.setCustomVar( SUCCESS_CALLED, 1 );
instance.success();
return;
}
if( !boss || !ida || !papa )
return;
@ -149,6 +142,13 @@ public:
a5->hateListAdd( pPlayer, 1 );
}
if( instance.getCountEnemyBNpc() == 0 && successCalled == 0 )
{
instance.setCustomVar( SUCCESS_CALLED, 1 );
instance.success();
return;
}
}
void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1,