mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 14:37:44 +00:00
HuntingLog fix
This commit is contained in:
parent
033d0d3c4c
commit
48046fd10c
1 changed files with 2 additions and 2 deletions
|
@ -1998,14 +1998,14 @@ void Sapphire::Entity::Player::updateHuntingLog( uint16_t id )
|
|||
for( auto x = 0; x < 4; ++x )
|
||||
{
|
||||
auto note1 = pExdData.getRow< Component::Excel::MonsterNoteTarget >( note->data().Target[ x ] );
|
||||
if( note1->data().Monster == id && logEntry.entries[ i - 1 ][ x ] < note->data().Target[ x ] )
|
||||
if( note1->data().Monster == id && logEntry.entries[ i - 1 ][ x ] < note->data().NeededKills[ x ] )
|
||||
{
|
||||
logEntry.entries[ i - 1 ][ x ]++;
|
||||
queuePacket( makeActorControlSelf( getId(), HuntingLogEntryUpdate, monsterNoteId, x, logEntry.entries[ i - 1 ][ x ] ) );
|
||||
logChanged = true;
|
||||
sectionChanged = true;
|
||||
}
|
||||
if( logEntry.entries[ i - 1 ][ x ] != note->data().Target[ x ] )
|
||||
if( logEntry.entries[ i - 1 ][ x ] != note->data().NeededKills[ x ] )
|
||||
sectionComplete = false;
|
||||
}
|
||||
if( logChanged && sectionComplete && sectionChanged )
|
||||
|
|
Loading…
Add table
Reference in a new issue