aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Commands
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2018-01-27 03:45:40 -0300
committerAriel Silva <ariel-@users.noreply.github.com>2018-03-09 14:41:28 -0300
commite8d5aa56cc48572d81e1898b7b4ff10cfa6d1957 (patch)
treeb21b5dff1cdb693074e23eb57906f6a2a2182a76 /src/server/scripts/Commands
parent9b38a6352c0fe2499de54fd769aa1c721a410bda (diff)
Core/Spells: rework part 3: spells only handle at most one UnitAura and one DynObjAura during its lifetime
Closes #15088
Diffstat (limited to 'src/server/scripts/Commands')
-rw-r--r--src/server/scripts/Commands/cs_misc.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/server/scripts/Commands/cs_misc.cpp b/src/server/scripts/Commands/cs_misc.cpp
index 9429643b657..a0d4d886717 100644
--- a/src/server/scripts/Commands/cs_misc.cpp
+++ b/src/server/scripts/Commands/cs_misc.cpp
@@ -315,7 +315,12 @@ public:
uint32 spellId = handler->extractSpellIdFromLink((char*)args);
if (SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spellId))
- Aura::TryRefreshStackOrCreate(spellInfo, MAX_EFFECT_MASK, target, target);
+ {
+ AuraCreateInfo createInfo(spellInfo, MAX_EFFECT_MASK, target);
+ createInfo.SetCaster(target);
+
+ Aura::TryRefreshStackOrCreate(createInfo);
+ }
return true;
}