Core/Creatures: Move immunities to separate table and implemented setting immunties to dispel, spell effects, aura types, aoe and chain targeting

Port From (https://github.com/TrinityCore/TrinityCore/commit/f70a5817e1c07891185d716611d45f50b1c73b78)
This commit is contained in:
hondacrx
2024-02-06 17:21:07 -05:00
parent f3993521bc
commit 7c812ae904
15 changed files with 216 additions and 98 deletions
@@ -186,6 +186,13 @@ namespace System.Collections.Generic
return blockValues;
}
public static uint ToUInt(this BitSet array)
{
uint[] blockValues = new uint[array.Length / 32 + 1];
array.CopyTo(blockValues, 0);
return blockValues[0];
}
public static void Clear(this Array array)
{
Array.Clear(array, 0, array.Length);