Core/Spells: Moved loading aoe target caps out of SpellMgr::LoadSpellInfoCorrections

Port From (https://github.com/TrinityCore/TrinityCore/commit/38eee2f034398e77335ec97228b931aaca5579bd)
This commit is contained in:
Hondacrx
2025-05-19 12:50:39 -04:00
parent 87df85cac7
commit 258bde8e13
3 changed files with 50 additions and 15 deletions
+21 -2
View File
@@ -4460,7 +4460,7 @@ namespace Game.Entities
});
// TODO: temporary, remove with dragonriding
ApplySpellFix( [404468], spellInfo =>
ApplySpellFix([404468], spellInfo =>
{
spellInfo.AttributesCu |= SpellCustomAttributes.AuraCannotBeSaved;
});
@@ -4627,7 +4627,26 @@ namespace Game.Entities
spellInfo._LoadImmunityInfo();
}
Log.outInfo(LogFilter.ServerLoading, "Loaded SpellInfo immunity infos in {0} ms", Time.GetMSTimeDiffToNow(oldMSTime));
Log.outInfo(LogFilter.ServerLoading, $"Loaded SpellInfo immunity infos in {Time.GetMSTimeDiffToNow(oldMSTime)} ms");
}
public void LoadSpellInfoTargetCaps()
{
uint oldMSTime = Time.GetMSTime();
// Eye Beam
ApplySpellFix([198030], spellInfo =>
{
spellInfo._LoadSqrtTargetLimit(5, 0, 198013, 4, null, null);
});
// Volatile Agony
ApplySpellFix([453035], spellInfo =>
{
spellInfo._LoadSqrtTargetLimit(8, 0, 453034, 1, null, null);
});
Log.outInfo(LogFilter.ServerLoading, $"Loaded SpellInfo target caps in {Time.GetMSTimeDiffToNow(oldMSTime)} ms");
}
public void LoadPetFamilySpellsStore()