mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 01:59:09 +00:00
fix(Scripts/Commands): Remove Spirit of Redemption when using Revive … (#20492)
fix(Scripts/Commands): Remove Spirit of Redemption when using Revive command
This commit is contained in:
@@ -1157,19 +1157,15 @@ public:
|
||||
static bool HandleReviveCommand(ChatHandler* handler, Optional<PlayerIdentifier> target)
|
||||
{
|
||||
if (!target)
|
||||
{
|
||||
target = PlayerIdentifier::FromTargetOrSelf(handler);
|
||||
}
|
||||
|
||||
if (!target)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (target->IsConnected())
|
||||
{
|
||||
auto targetPlayer = target->GetConnectedPlayer();
|
||||
|
||||
targetPlayer->RemoveAurasDueToSpell(27827); // Spirit of Redemption
|
||||
targetPlayer->ResurrectPlayer(!AccountMgr::IsPlayerAccount(targetPlayer->GetSession()->GetSecurity()) ? 1.0f : 0.5f);
|
||||
targetPlayer->SpawnCorpseBones();
|
||||
targetPlayer->SaveToDB(false, false);
|
||||
|
||||
Reference in New Issue
Block a user