* Corpse related cleanup (author: Hunuza)
* Avoid saving of the corpse in arenas (author: VladimirMangos) --HG-- branch : trunk
This commit is contained in:
1 parent
4773aad26b
commit
f9a51dc214
16 files changed
+34
-178
No files matched your search
@@ -4834,10 +4834,8 @@ void Player::CreateCorpse()
|
||||
}
|
||||
}
|
||||
|
||||
// we don't SaveToDB for players in battlegrounds so don't do it for corpses either
|
||||
const MapEntry *entry = sMapStore.LookupEntry(corpse->GetMapId());
|
||||
ASSERT(entry);
|
||||
if (entry->map_type != MAP_BATTLEGROUND)
|
||||
// we do not need to save corpses for BG/arenas
|
||||
if (!GetMap()->IsBattleGroundOrArena())
|
||||
corpse->SaveToDB();
|
||||
|
||||
// register for player, but not show
|
||||
|
||||
Reference in new issue
Block a user