Updated all spell scripts
This commit is contained in:
@@ -663,7 +663,7 @@ namespace Framework.Constants
|
||||
Hunter = 3,
|
||||
Rogue = 4,
|
||||
Priest = 5,
|
||||
Deathknight = 6,
|
||||
DeathKnight = 6,
|
||||
Shaman = 7,
|
||||
Mage = 8,
|
||||
Warlock = 9,
|
||||
@@ -675,7 +675,7 @@ namespace Framework.Constants
|
||||
Max = 15,
|
||||
|
||||
ClassMaskAllPlayable = ((1 << (Warrior - 1)) | (1 << (Paladin - 1)) | (1 << (Hunter - 1)) |
|
||||
(1 << (Rogue - 1)) | (1 << (Priest - 1)) | (1 << (Deathknight - 1)) | (1 << (Shaman - 1)) |
|
||||
(1 << (Rogue - 1)) | (1 << (Priest - 1)) | (1 << (DeathKnight - 1)) | (1 << (Shaman - 1)) |
|
||||
(1 << (Mage - 1)) | (1 << (Warlock - 1)) | (1 << (Monk - 1)) | (1 << (Druid - 1)) | (1 << (DemonHunter - 1)) | (1 << (Evoker - 1))),
|
||||
|
||||
ClassMaskAllCreatures = ((1 << (Warrior - 1)) | (1 << (Paladin - 1)) | (1 << (Rogue - 1)) | (1 << (Mage - 1))),
|
||||
|
||||
@@ -203,6 +203,33 @@ namespace System.Collections.Generic
|
||||
while (list.Count <= index)
|
||||
list.Add(defaultValue);
|
||||
}
|
||||
|
||||
public static void PartitionInPlace<T>(this IList<T> list, Func<T, bool> predicate)
|
||||
{
|
||||
int left = 0;
|
||||
int right = list.Count - 1;
|
||||
|
||||
while (left <= right)
|
||||
{
|
||||
while (left <= right && predicate(list[left]))
|
||||
{
|
||||
left++;
|
||||
}
|
||||
while (left <= right && !predicate(list[right]))
|
||||
{
|
||||
right--;
|
||||
}
|
||||
|
||||
if (left < right)
|
||||
{
|
||||
T temp = list[left];
|
||||
list[left] = list[right];
|
||||
list[right] = temp;
|
||||
left++;
|
||||
right--;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public interface ICheck<in T>
|
||||
|
||||
Reference in New Issue
Block a user