mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-03 19:13:49 +00:00
refactor(Core/Spells): Add helpers for HasAuraType (#20802)
This commit is contained in:
@@ -844,7 +844,7 @@ void Battleground::EndBattleground(PvPTeamId winnerTeamId)
|
||||
TeamId bgTeamId = player->GetBgTeamId();
|
||||
|
||||
// should remove spirit of redemption
|
||||
if (player->HasAuraType(SPELL_AURA_SPIRIT_OF_REDEMPTION))
|
||||
if (player->HasSpiritOfRedemptionAura())
|
||||
player->RemoveAurasByType(SPELL_AURA_MOD_SHAPESHIFT);
|
||||
|
||||
if (!player->IsAlive())
|
||||
@@ -1008,7 +1008,7 @@ void Battleground::RemovePlayerAtLeave(Player* player)
|
||||
RemovePlayer(player);
|
||||
|
||||
// should remove spirit of redemption
|
||||
if (player->HasAuraType(SPELL_AURA_SPIRIT_OF_REDEMPTION))
|
||||
if (player->HasSpiritOfRedemptionAura())
|
||||
player->RemoveAurasByType(SPELL_AURA_MOD_SHAPESHIFT);
|
||||
|
||||
// if the player was a match participant
|
||||
|
||||
@@ -534,7 +534,7 @@ void BattlegroundSA::TeleportPlayers()
|
||||
if (Player* player = itr->second)
|
||||
{
|
||||
// should remove spirit of redemption
|
||||
if (player->HasAuraType(SPELL_AURA_SPIRIT_OF_REDEMPTION))
|
||||
if (player->HasSpiritOfRedemptionAura())
|
||||
player->RemoveAurasByType(SPELL_AURA_MOD_SHAPESHIFT);
|
||||
|
||||
if (!player->IsAlive())
|
||||
|
||||
Reference in New Issue
Block a user