From dfa5da00b1253a944884d86796577dddcc799255 Mon Sep 17 00:00:00 2001 From: NinjaPleezAC <121171014+NinjaPleezAC@users.noreply.github.com> Date: Sat, 13 May 2023 10:50:07 -0700 Subject: [PATCH] fix(Core/Player): Apply equip effect auras with -1 duration (#14809) Enforces a -1 duration value to auras applied from equip effects. Current reliance on the DurationEntry of the auras causes at least one aura to incorrectly expire. Closes AzerothCore issue #5649 Closes https://github.com/chromiecraft/chromiecraft/issues/531 --- src/server/game/Entities/Player/Player.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index a8925a7b6..9a258bd7b 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -7075,7 +7075,8 @@ void Player::ApplyEquipSpell(SpellInfo const* spellInfo, Item* item, bool apply, LOG_DEBUG("entities.player", "WORLD: cast {} Equip spellId - {}", (item ? "item" : "itemset"), spellInfo->Id); - CastSpell(this, spellInfo, true, item); + //Ignore spellInfo->DurationEntry, cast with -1 duration + CastCustomSpell(spellInfo->Id, SPELLVALUE_AURA_DURATION, -1, this, true, item); } else {