mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[11951] Unify loot related code and fix engrish.
Also readd the m_groupLootId check in case the StopGroupLoot will be called from other places Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
1c5f99f4b8
commit
f153193a02
5 changed files with 16 additions and 15 deletions
|
|
@ -538,10 +538,10 @@ void Creature::Update(uint32 update_diff, uint32 diff)
|
|||
m_corpseDecayTimer -= update_diff;
|
||||
if (m_groupLootId)
|
||||
{
|
||||
if(update_diff < m_groupLootTimer)
|
||||
m_groupLootTimer -= update_diff;
|
||||
else
|
||||
if (m_groupLootTimer <= update_diff)
|
||||
StopGroupLoot();
|
||||
else
|
||||
m_groupLootTimer -= update_diff;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue