1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-05 10:17:46 +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 7615f83748
commit 9c6f2f55b9

View file

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