mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-25 19:17:45 +00:00
bug fixes
This commit is contained in:
parent
2d788bce66
commit
3cd083809a
3 changed files with 8 additions and 3 deletions
|
@ -123,7 +123,7 @@ private:
|
|||
{
|
||||
if( result.param2 == 1 )
|
||||
{
|
||||
if( player.giveQuestRewards( getId(), 0 ) )
|
||||
if( player.giveQuestRewards( getId(), result.param3 ) )
|
||||
{
|
||||
player.setQuestUI8BH( getId(), result.param3 );
|
||||
player.finishQuest( getId() );
|
||||
|
|
|
@ -598,11 +598,12 @@ void Sapphire::Entity::Chara::removeStatusEffect( uint8_t effectSlotId, bool sen
|
|||
if( pEffectIt == m_statusEffectMap.end() )
|
||||
return;
|
||||
|
||||
auto pEffect = pEffectIt->second;
|
||||
|
||||
statusEffectFreeSlot( effectSlotId );
|
||||
|
||||
m_statusEffectMap.erase( effectSlotId );
|
||||
|
||||
auto pEffect = pEffectIt->second;
|
||||
pEffect->removeStatus();
|
||||
|
||||
sendToInRangeSet( makeActorControl( getId(), StatusEffectLose, pEffect->getId() ), true );
|
||||
|
|
|
@ -2153,7 +2153,7 @@ void Sapphire::Entity::Player::updateHuntingLog( uint16_t id )
|
|||
const auto maxRank = 4;
|
||||
auto& pExdData = Common::Service< Data::ExdDataGenerated >::ref();
|
||||
|
||||
auto& logEntry = m_huntingLogEntries[ static_cast< uint8_t >( getClass() ) - 1 ];
|
||||
auto logEntryIndex = static_cast< uint8_t >( getClass() ) - 1;
|
||||
|
||||
bool logChanged = false;
|
||||
|
||||
|
@ -2162,6 +2162,10 @@ void Sapphire::Entity::Player::updateHuntingLog( uint16_t id )
|
|||
auto classJobInfo = pExdData.get< Sapphire::Data::ClassJob >( currentClass );
|
||||
if( !classJobInfo )
|
||||
return;
|
||||
if( classJobInfo->classJobParent > 0 )
|
||||
logEntryIndex = classJobInfo->classJobParent;
|
||||
|
||||
auto& logEntry = m_huntingLogEntries[ logEntryIndex ];
|
||||
|
||||
bool allSectionsComplete = true;
|
||||
for( int i = 1; i <= 10; ++i )
|
||||
|
|
Loading…
Add table
Reference in a new issue