Core/Spell: honor IsStackableOnOneSlotWithDifferentCasters() when deciding if an aura should stack from different casters or not.
Port From (https://github.com/TrinityCore/TrinityCore/commit/2f2de263114e1227e348a9177bf8b60076a17553)
This commit is contained in:
@@ -3878,7 +3878,7 @@ namespace Game.Entities
|
|||||||
ObjectGuid castItemGUID = createInfo.CastItemGUID;
|
ObjectGuid castItemGUID = createInfo.CastItemGUID;
|
||||||
|
|
||||||
// find current aura from spell and change it's stackamount, or refresh it's duration
|
// find current aura from spell and change it's stackamount, or refresh it's duration
|
||||||
Aura foundAura = GetOwnedAura(createInfo.GetSpellInfo().Id, createInfo.CasterGUID, createInfo.GetSpellInfo().HasAttribute(SpellCustomAttributes.EnchantProc) ? castItemGUID : ObjectGuid.Empty, 0);
|
Aura foundAura = GetOwnedAura(createInfo.GetSpellInfo().Id, createInfo.GetSpellInfo().IsStackableOnOneSlotWithDifferentCasters() ? ObjectGuid.Empty : createInfo.CasterGUID, createInfo.GetSpellInfo().HasAttribute(SpellCustomAttributes.EnchantProc) ? castItemGUID : ObjectGuid.Empty, 0);
|
||||||
if (foundAura != null)
|
if (foundAura != null)
|
||||||
{
|
{
|
||||||
// effect masks do not match
|
// effect masks do not match
|
||||||
|
|||||||
Reference in New Issue
Block a user