Core/Auras: Fixed saving auras with same spell id but different item source
This commit is contained in:
1 parent
b4b8fffa22
commit
dc8bf301bb
8 files changed
+36
-29
No files matched your search
@@ -3041,9 +3041,7 @@ Aura* Unit::_TryStackingOrRefreshingExistingAura(AuraCreateInfo& createInfo)
|
||||
if (!createInfo.GetSpellInfo()->IsMultiSlotAura())
|
||||
{
|
||||
// check if cast item changed
|
||||
ObjectGuid castItemGUID;
|
||||
if (createInfo.CastItem)
|
||||
castItemGUID = createInfo.CastItem->GetGUID();
|
||||
ObjectGuid castItemGUID = createInfo.CastItemGUID;
|
||||
|
||||
// find current aura from spell and change it's stackamount, or refresh it's duration
|
||||
if (Aura* foundAura = GetOwnedAura(createInfo.GetSpellInfo()->Id, createInfo.CasterGUID, createInfo.GetSpellInfo()->HasAttribute(SPELL_ATTR0_CU_ENCHANT_PROC) ? castItemGUID : ObjectGuid::Empty))
|
||||
|
||||
Reference in new issue
Block a user