diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index aa70512cb..36d7faeb1 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -7496,6 +7496,19 @@ void Player::SendLoot(ObjectGuid guid, LootType loot_type) PermissionTypes permission = ALL_PERMISSION; LOG_DEBUG("loot", "Player::SendLoot"); + + // remove FD and invisibility at all loots + constexpr std::array toRemove = {SPELL_AURA_MOD_INVISIBILITY, SPELL_AURA_FEIGN_DEATH}; + for (const auto& aura : toRemove) + { + RemoveAurasByType(aura); + } + // remove stealth only if looting a corpse + if (loot_type == LOOT_CORPSE && !guid.IsItem()) + { + RemoveAurasByType(SPELL_AURA_MOD_STEALTH); + } + if (guid.IsGameObject()) { LOG_DEBUG("loot", "guid.IsGameObject");