diff options
author | ariel- <ariel-@users.noreply.github.com> | 2018-01-27 03:45:40 -0300 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-08-28 15:59:11 +0200 |
commit | f3548d45d0a74203ef6f5c7282c31ba794ddf7a1 (patch) | |
tree | 94a7c69af30d4b13018457cf40c06366ebc11ba9 /src/server/scripts/Commands | |
parent | 52ae3c89d1d4dbcff309d940fd41c7212edc77b7 (diff) |
Core/Spells: rework part 3: spells only handle at most one UnitAura and one DynObjAura during its lifetime
Closes #15088
(cherry picked from commit e8d5aa56cc48572d81e1898b7b4ff10cfa6d1957)
Diffstat (limited to 'src/server/scripts/Commands')
-rw-r--r-- | src/server/scripts/Commands/cs_misc.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/scripts/Commands/cs_misc.cpp b/src/server/scripts/Commands/cs_misc.cpp index 95dcf69e05d..b96b66c0229 100644 --- a/src/server/scripts/Commands/cs_misc.cpp +++ b/src/server/scripts/Commands/cs_misc.cpp @@ -323,7 +323,10 @@ public: if (SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spellId, target->GetMap()->GetDifficultyID())) { ObjectGuid castId = ObjectGuid::Create<HighGuid::Cast>(SPELL_CAST_SOURCE_NORMAL, target->GetMapId(), spellId, target->GetMap()->GenerateLowGuid<HighGuid::Cast>()); - Aura::TryRefreshStackOrCreate(spellInfo, castId, MAX_EFFECT_MASK, target, target, target->GetMap()->GetDifficultyID()); + AuraCreateInfo createInfo(castId, spellInfo, target->GetMap()->GetDifficultyID(), MAX_EFFECT_MASK, target); + createInfo.SetCaster(target); + + Aura::TryRefreshStackOrCreate(createInfo); } return true; |