aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-09-08 21:59:32 +0200
committerOvahlord <dreadkiller@gmx.de>2024-09-12 21:46:00 +0200
commite0ac52a75a727873f1f449a4a5c805b73d5c3de6 (patch)
tree1c8de6d1b821f62e9b1445ecfe3b489b47188604 /src
parentf2772c13cd636c524b1c92dccfa0872f744fb627 (diff)
Core/Spells: Remove setting OriginalCastId from CastSpellExtraArgs::SetTriggeringAura
(cherry picked from commit f604661a40d05cb1f06e5e0b3112591ebb3aa1a6) # Conflicts: # src/server/game/Spells/Spell.cpp
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Spell.cpp9
-rw-r--r--src/server/game/Spells/SpellDefines.h2
2 files changed, 1 insertions, 10 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index d96a0d6388f..c960f38bc48 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -9389,15 +9389,6 @@ CastSpellExtraArgs& CastSpellExtraArgs::SetTriggeringSpell(Spell const* triggeri
return *this;
}
-CastSpellExtraArgs& CastSpellExtraArgs::SetTriggeringAura(AuraEffect const* triggeringAura)
-{
- TriggeringAura = triggeringAura;
- if (triggeringAura)
- OriginalCastId = triggeringAura->GetBase()->GetCastId();
-
- return *this;
-}
-
SpellCastVisual::operator WorldPackets::Spells::SpellCastVisual() const
{
return { int32(SpellXSpellVisualID) };
diff --git a/src/server/game/Spells/SpellDefines.h b/src/server/game/Spells/SpellDefines.h
index 45ba289967f..761208de2a3 100644
--- a/src/server/game/Spells/SpellDefines.h
+++ b/src/server/game/Spells/SpellDefines.h
@@ -469,7 +469,7 @@ struct TC_GAME_API CastSpellExtraArgs
CastSpellExtraArgs& SetTriggerFlags(TriggerCastFlags flag) { TriggerFlags = flag; return *this; }
CastSpellExtraArgs& SetCastItem(Item* item) { CastItem = item; return *this; }
CastSpellExtraArgs& SetTriggeringSpell(Spell const* triggeringSpell);
- CastSpellExtraArgs& SetTriggeringAura(AuraEffect const* triggeringAura);
+ CastSpellExtraArgs& SetTriggeringAura(AuraEffect const* triggeringAura) { TriggeringAura = triggeringAura; return *this; }
CastSpellExtraArgs& SetOriginalCaster(ObjectGuid const& guid) { OriginalCaster = guid; return *this; }
CastSpellExtraArgs& SetCastDifficulty(Difficulty castDifficulty) { CastDifficulty = castDifficulty; return *this; }
CastSpellExtraArgs& SetOriginalCastId(ObjectGuid const& castId) { OriginalCastId = castId; return *this; }