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
This commit is contained in:
NinjaPleezAC
2023-05-13 10:50:07 -07:00
committed by GitHub
parent 60adbf5b82
commit dfa5da00b1

View File

@@ -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
{