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:
@@ -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);
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user