mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[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. Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
95379309e5
commit
6a90d60327
22 changed files with 2280 additions and 877 deletions
|
|
@ -2490,15 +2490,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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue