Core/Spells: Remove setting OriginalCastId from CastSpellExtraArgs::SetTriggeringAura

This commit is contained in:
Shauren
2024-09-08 21:59:32 +02:00
parent 10b50d752b
commit f604661a40
2 changed files with 1 additions and 10 deletions
-9
View File
@@ -9668,15 +9668,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 UF::SpellCastVisual() const
{
UF::SpellCastVisual visual;
+1 -1
View File
@@ -470,7 +470,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; }