Battlefield: Make sBattlefieldMgr a pointer. By Subv.
This commit is contained in:
1 parent
1f6eec4754
commit
d7a7a9800b
13 files changed
+359
-14
No files matched your search
@@ -15675,9 +15675,14 @@ void Unit::Kill(Unit* victim, bool durabilityLoss)
|
||||
// outdoor pvp things, do these after setting the death state, else the player activity notify won't work... doh...
|
||||
// handle player kill only if not suicide (spirit of redemption for example)
|
||||
if (player && this != victim)
|
||||
{
|
||||
if (OutdoorPvP* pvp = player->GetOutdoorPvP())
|
||||
pvp->HandleKill(player, victim);
|
||||
|
||||
if (Battlefield* bf = sBattlefieldMgr->GetBattlefieldToZoneId(player->GetZoneId()))
|
||||
bf->HandleKill(player, victim);
|
||||
}
|
||||
|
||||
//if (victim->GetTypeId() == TYPEID_PLAYER)
|
||||
// if (OutdoorPvP* pvp = victim->ToPlayer()->GetOutdoorPvP())
|
||||
// pvp->HandlePlayerActivityChangedpVictim->ToPlayer();
|
||||
|
||||
Reference in new issue
Block a user