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:
@@ -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); }
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user