aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2018-01-27 03:45:40 -0300
committerShauren <shauren.trinity@gmail.com>2021-08-28 15:59:11 +0200
commitf3548d45d0a74203ef6f5c7282c31ba794ddf7a1 (patch)
tree94a7c69af30d4b13018457cf40c06366ebc11ba9 /src/server/scripts
parent52ae3c89d1d4dbcff309d940fd41c7212edc77b7 (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')
-rw-r--r--src/server/scripts/Commands/cs_misc.cpp5
-rw-r--r--src/server/scripts/Spells/spell_dh.cpp1
-rw-r--r--src/server/scripts/Spells/spell_paladin.cpp4
3 files changed, 7 insertions, 3 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;
diff --git a/src/server/scripts/Spells/spell_dh.cpp b/src/server/scripts/Spells/spell_dh.cpp
index 406456513e8..e76618661fc 100644
--- a/src/server/scripts/Spells/spell_dh.cpp
+++ b/src/server/scripts/Spells/spell_dh.cpp
@@ -25,6 +25,7 @@
#include "SpellAuraEffects.h"
#include "SpellMgr.h"
#include "SpellScript.h"
+#include "Unit.h"
enum DemonHunterSpells
{
diff --git a/src/server/scripts/Spells/spell_paladin.cpp b/src/server/scripts/Spells/spell_paladin.cpp
index 59eea2cc385..b7bf9fbbdbd 100644
--- a/src/server/scripts/Spells/spell_paladin.cpp
+++ b/src/server/scripts/Spells/spell_paladin.cpp
@@ -813,8 +813,8 @@ class spell_pal_light_s_beacon : public SpellScriptLoader
{
if ((*itr)->GetId() == SPELL_PALADIN_BEACON_OF_LIGHT)
{
- std::list<AuraApplication*> applications;
- (*itr)->GetApplicationList(applications);
+ std::vector<AuraApplication*> applications;
+ (*itr)->GetApplicationVector(applications);
if (!applications.empty())
{
CastSpellExtraArgs args(aurEff);