Skip to content

Commit

Permalink
Cleanup some flags to when all loot are removed or creature is skinned.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberium committed Sep 23, 2015
1 parent bcfe15c commit 25fee9b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/game/Creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2699,9 +2699,13 @@ void Creature::SetLootStatus(CreatureLootStatus status)
case CREATURE_LOOT_STATUS_LOOTED:
if (m_creatureInfo->SkinningLootId)
SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_SKINNABLE);
else
RemoveFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);
break;
case CREATURE_LOOT_STATUS_SKINNED:
m_corpseDecayTimer = 0; // remove corpse at next update
RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_SKINNABLE);
RemoveFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);
break;
default:
break;
Expand Down

0 comments on commit 25fee9b

Please sign in to comment.