mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[8821] removed some redundant player->SaveToDB calls
SaveToDB will already be called at "SpawnCorpseBones" so no need to do this twice
This commit is contained in:
parent
5475430235
commit
6199396b69
5 changed files with 1 additions and 8 deletions
|
|
@ -646,8 +646,6 @@ void WorldSession::HandleReclaimCorpseOpcode(WorldPacket &recv_data)
|
|||
|
||||
// spawn bones
|
||||
GetPlayer()->SpawnCorpseBones();
|
||||
|
||||
GetPlayer()->SaveToDB();
|
||||
}
|
||||
|
||||
void WorldSession::HandleResurrectResponseOpcode(WorldPacket & recv_data)
|
||||
|
|
|
|||
|
|
@ -138,7 +138,6 @@ void WorldSession::HandleMoveWorldportAckOpcode()
|
|||
{
|
||||
GetPlayer()->ResurrectPlayer(0.5f);
|
||||
GetPlayer()->SpawnCorpseBones();
|
||||
GetPlayer()->SaveToDB();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -377,8 +377,6 @@ void WorldSession::SendSpiritResurrect()
|
|||
// or update at original position
|
||||
else
|
||||
_player->UpdateVisibilityForPlayer();
|
||||
|
||||
_player->SaveToDB();
|
||||
}
|
||||
|
||||
void WorldSession::HandleBinderActivateOpcode( WorldPacket & recv_data )
|
||||
|
|
|
|||
|
|
@ -6210,8 +6210,6 @@ void Spell::EffectSelfResurrect(uint32 i)
|
|||
plr->SetPower(POWER_ENERGY, plr->GetMaxPower(POWER_ENERGY) );
|
||||
|
||||
plr->SpawnCorpseBones();
|
||||
|
||||
plr->SaveToDB();
|
||||
}
|
||||
|
||||
void Spell::EffectSkinning(uint32 /*i*/)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8820"
|
||||
#define REVISION_NR "8821"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue