mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
refactor(Core/Spells): Add helpers for HasAuraType (#20802)
This commit is contained in:
@@ -63,7 +63,7 @@ void WorldSession::HandleRepopRequestOpcode(WorldPacket& recv_data)
|
||||
if (GetPlayer()->IsAlive() || GetPlayer()->HasPlayerFlag(PLAYER_FLAGS_GHOST))
|
||||
return;
|
||||
|
||||
if (GetPlayer()->HasAuraType(SPELL_AURA_PREVENT_RESURRECTION))
|
||||
if (GetPlayer()->HasPreventResurectionAura())
|
||||
return; // silently return, client should display the error by itself
|
||||
|
||||
// the world update order is sessions, players, creatures
|
||||
@@ -674,7 +674,7 @@ void WorldSession::HandleResurrectResponseOpcode(WorldPacket& recv_data)
|
||||
recv_data >> status;
|
||||
|
||||
// Xinef: Prevent resurrect with prevent resurrection aura
|
||||
if (GetPlayer()->IsAlive() || GetPlayer()->HasAuraType(SPELL_AURA_PREVENT_RESURRECTION))
|
||||
if (GetPlayer()->IsAlive() || GetPlayer()->HasPreventResurectionAura())
|
||||
return;
|
||||
|
||||
if (status == 0)
|
||||
|
||||
Reference in New Issue
Block a user