Core/Spells: Added additional validation to loading spell_linked_spell to prevent infinite loops

Port From (https://github.com/TrinityCore/TrinityCore/commit/badb55bfd97c16fecfb8cd73ba99e39ecb6b622d)
This commit is contained in:
hondacrx
2023-01-23 00:24:27 -05:00
parent 4b86a00d6e
commit 8921432333
4 changed files with 38 additions and 20 deletions
@@ -39,10 +39,10 @@ namespace Framework.Constants
public enum SpellLinkedType
{
Cast = 0, // +: cast; -: remove
Hit = 1 * 200000,
Aura = 2 * 200000, // +: aura; -: immune
Remove = 0
Cast = 0, // +: cast; -: remove
Hit = 1,
Aura = 2, // +: aura; -: immune
Remove = 3
}
//Spell targets used by SelectSpell