[7428] Add new .map file format use more compact data store and use
Rewrite .map extractor
+ extract more useful data
+ add "-f 0" option for disable size/accuracy optimisation
+ Compatability vs 2.4.3 client data
More fast get .map data
Implement fatigue timer
Rewrite breath timer
Allow absorb/resist for lava/slime environmental damage
Need re-extract map for work.
Author: DiSlord
--HG--
branch : trunk
This commit is contained in:
@@ -2343,15 +2343,9 @@ void Aura::HandleAuraHover(bool apply, bool Real)
|
||||
|
||||
void Aura::HandleWaterBreathing(bool apply, bool Real)
|
||||
{
|
||||
if(!apply && !m_target->HasAuraType(SPELL_AURA_WATER_BREATHING))
|
||||
{
|
||||
// update for enable timer in case not moving target
|
||||
if(m_target->GetTypeId()==TYPEID_PLAYER && m_target->IsInWorld())
|
||||
{
|
||||
((Player*)m_target)->UpdateUnderwaterState(m_target->GetMap(),m_target->GetPositionX(),m_target->GetPositionY(),m_target->GetPositionZ());
|
||||
((Player*)m_target)->HandleDrowning();
|
||||
}
|
||||
}
|
||||
// update timers in client
|
||||
if(m_target->GetTypeId()==TYPEID_PLAYER)
|
||||
((Player*)m_target)->UpdateMirrorTimers();
|
||||
}
|
||||
|
||||
void Aura::HandleAuraModShapeshift(bool apply, bool Real)
|
||||
|
||||
Reference in New Issue
Block a user