Scripts/Spells: Added proc requirements to a few auras that have SPELL_ATTR3_CAN_PROC_FROM_PROCS attribute

Port From (https://github.com/TrinityCore/TrinityCore/commit/c8ebf077c7b934eeb33466cd11a92ba00b931a3d)
This commit is contained in:
hondacrx
2023-05-02 14:26:30 -04:00
parent 1f75a2645a
commit 9decc17cd0
4 changed files with 196 additions and 3 deletions
+1 -1
View File
@@ -1692,7 +1692,7 @@ namespace Game.Scripting
public int GetDuration() { return m_aura.GetDuration(); }
public void SetDuration(int duration, bool withMods = false) { m_aura.SetDuration(duration, withMods); }
// sets duration to maxduration
void RefreshDuration() { m_aura.RefreshDuration(); }
public void RefreshDuration() { m_aura.RefreshDuration(); }
long GetApplyTime() { return m_aura.GetApplyTime(); }
public int GetMaxDuration() { return m_aura.GetMaxDuration(); }
public void SetMaxDuration(int duration) { m_aura.SetMaxDuration(duration); }
+10 -1
View File
@@ -4341,8 +4341,17 @@ namespace Game.Entities
});
});
ApplySpellFix(new[] { 265057 }, spellInfo =>
{
ApplySpellEffectFix(spellInfo, 0, spellEffectInfo =>
{
// Fix incorrect spell id (it has self in TriggerSpell)
spellEffectInfo.TriggerSpell = 16403;
});
});
// Ray of Frost (Fingers of Frost charges)
ApplySpellFix(new []{ 269748 }, spellInfo =>
ApplySpellFix(new[] { 269748 }, spellInfo =>
{
spellInfo.AttributesEx &= ~SpellAttr1.IsChannelled;
});