mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 02:50:29 +00:00
Feat(Core/Scripting): Add new hook CanPlayerResurrect to simplify HardCore mod etc. (#21272)
This commit is contained in:
@@ -4491,6 +4491,9 @@ void Player::BuildPlayerRepop()
|
||||
|
||||
void Player::ResurrectPlayer(float restore_percent, bool applySickness)
|
||||
{
|
||||
if (!sScriptMgr->CanPlayerResurrect(this))
|
||||
return;
|
||||
|
||||
WorldPacket data(SMSG_DEATH_RELEASE_LOC, 4 * 4); // remove spirit healer position
|
||||
data << uint32(-1);
|
||||
data << float(0);
|
||||
|
||||
Reference in New Issue
Block a user