diff options
| author | Shauren <shauren.trinity@gmail.com> | 2021-10-03 14:58:35 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2021-10-03 14:58:35 +0200 |
| commit | 3af9be830d736506ed4544a922699ed0f7a7ecd4 (patch) | |
| tree | c334a35bfa68b5a1fc8a2549d0766e982fb82e5f /src/server/scripts/Spells | |
| parent | 4449b1396ca3bdea1d856bc991903358e33d2000 (diff) | |
Core/Spells: Removed CastSpellExtraArgs constructors accepting ObjectGuid, they would become ambiguous with future changes
Diffstat (limited to 'src/server/scripts/Spells')
| -rw-r--r-- | src/server/scripts/Spells/spell_druid.cpp | 6 | ||||
| -rw-r--r-- | src/server/scripts/Spells/spell_generic.cpp | 6 | ||||
| -rw-r--r-- | src/server/scripts/Spells/spell_holiday.cpp | 3 | ||||
| -rw-r--r-- | src/server/scripts/Spells/spell_shaman.cpp | 3 |
4 files changed, 12 insertions, 6 deletions
diff --git a/src/server/scripts/Spells/spell_druid.cpp b/src/server/scripts/Spells/spell_druid.cpp index fd07b60840e..b37be52e21a 100644 --- a/src/server/scripts/Spells/spell_druid.cpp +++ b/src/server/scripts/Spells/spell_druid.cpp @@ -890,7 +890,8 @@ public: } } - target->CastSpell(target, SPELL_DRUID_LIFEBLOOM_FINAL_HEAL, { aurEff, GetCasterGUID() }); + target->CastSpell(target, SPELL_DRUID_LIFEBLOOM_FINAL_HEAL, CastSpellExtraArgs(aurEff) + .SetOriginalCaster(GetCasterGUID())); } void AfterRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) @@ -1185,7 +1186,8 @@ public: void AfterApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) { Unit* target = GetTarget(); - target->CastSpell(target, SPELL_DRUID_SAVAGE_ROAR, { aurEff, GetCasterGUID() }); + target->CastSpell(target, SPELL_DRUID_SAVAGE_ROAR, CastSpellExtraArgs(aurEff) + .SetOriginalCaster(GetCasterGUID())); } void AfterRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) diff --git a/src/server/scripts/Spells/spell_generic.cpp b/src/server/scripts/Spells/spell_generic.cpp index ec5fd6c378b..71724805fd8 100644 --- a/src/server/scripts/Spells/spell_generic.cpp +++ b/src/server/scripts/Spells/spell_generic.cpp @@ -1737,7 +1737,8 @@ class spell_gen_lifebloom : public SpellScriptLoader return; // final heal - GetTarget()->CastSpell(GetTarget(), _spellId, { aurEff, GetCasterGUID() }); + GetTarget()->CastSpell(GetTarget(), _spellId, CastSpellExtraArgs(aurEff) + .SetOriginalCaster(GetCasterGUID())); } void Register() override @@ -3161,7 +3162,8 @@ class spell_gen_turkey_marker : public AuraScript // on stack 15 cast the achievement crediting spell if (GetStackAmount() >= 15) - target->CastSpell(target, SPELL_TURKEY_VENGEANCE, { aurEff, GetCasterGUID() }); + target->CastSpell(target, SPELL_TURKEY_VENGEANCE, CastSpellExtraArgs(aurEff) + .SetOriginalCaster(GetCasterGUID())); } void OnPeriodic(AuraEffect const* /*aurEff*/) diff --git a/src/server/scripts/Spells/spell_holiday.cpp b/src/server/scripts/Spells/spell_holiday.cpp index c046ce12c14..ec1f16c27ec 100644 --- a/src/server/scripts/Spells/spell_holiday.cpp +++ b/src/server/scripts/Spells/spell_holiday.cpp @@ -578,7 +578,8 @@ class spell_pilgrims_bounty_feast_on : public SpellScriptLoader if (Player* player = target->ToPlayer()) { player->CastSpell(player, SPELL_ON_PLATE_EAT_VISUAL, true); - caster->CastSpell(player, _spellId, player->GetGUID()); + caster->CastSpell(player, _spellId, CastSpellExtraArgs(TRIGGERED_FULL_MASK) + .SetOriginalCaster(player->GetGUID())); } if (Aura* aura = caster->GetAura(GetEffectValue())) diff --git a/src/server/scripts/Spells/spell_shaman.cpp b/src/server/scripts/Spells/spell_shaman.cpp index b237bb717db..a0cfba70da2 100644 --- a/src/server/scripts/Spells/spell_shaman.cpp +++ b/src/server/scripts/Spells/spell_shaman.cpp @@ -291,7 +291,8 @@ class spell_sha_earth_shield : public SpellScriptLoader { PreventDefaultAction(); - GetTarget()->CastSpell(GetTarget(), SPELL_SHAMAN_EARTH_SHIELD_HEAL, { aurEff, GetCasterGUID() }); + GetTarget()->CastSpell(GetTarget(), SPELL_SHAMAN_EARTH_SHIELD_HEAL, CastSpellExtraArgs(aurEff) + .SetOriginalCaster(GetCasterGUID())); } void Register() override |
