mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-07-23 03:27:46 +00:00
Send status and hudparam updates after modifying effectmap
This commit is contained in:
parent
fab2af1fa3
commit
c82390b6cf
1 changed files with 6 additions and 6 deletions
|
@ -606,12 +606,6 @@ std::map< uint8_t, Sapphire::StatusEffect::StatusEffectPtr >::iterator Chara::re
|
||||||
auto pEffect = pEffectIt->second;
|
auto pEffect = pEffectIt->second;
|
||||||
pEffect->removeStatus();
|
pEffect->removeStatus();
|
||||||
|
|
||||||
if( updateStatus )
|
|
||||||
{
|
|
||||||
Network::Util::Packet::sendActorControl( getInRangePlayerIds( isPlayer() ), getId(), StatusEffectLose, pEffect->getId() );
|
|
||||||
Network::Util::Packet::sendHudParam( *this );
|
|
||||||
}
|
|
||||||
|
|
||||||
auto it = m_statusEffectMap.erase( pEffectIt );
|
auto it = m_statusEffectMap.erase( pEffectIt );
|
||||||
|
|
||||||
for( auto effectIt = it; effectIt != m_statusEffectMap.end(); )
|
for( auto effectIt = it; effectIt != m_statusEffectMap.end(); )
|
||||||
|
@ -635,6 +629,12 @@ std::map< uint8_t, Sapphire::StatusEffect::StatusEffectPtr >::iterator Chara::re
|
||||||
|
|
||||||
Logger::warn( "Slot id being freed: {}", effectSlotId );
|
Logger::warn( "Slot id being freed: {}", effectSlotId );
|
||||||
|
|
||||||
|
if( updateStatus )
|
||||||
|
{
|
||||||
|
Network::Util::Packet::sendActorControl( getInRangePlayerIds( isPlayer() ), getId(), StatusEffectLose, pEffect->getId() );
|
||||||
|
Network::Util::Packet::sendHudParam( *this );
|
||||||
|
}
|
||||||
|
|
||||||
return it;
|
return it;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue