Core/Player: Fixed cooldowns of DK Runes.

This commit is contained in:
hondacrx
2018-06-09 12:02:06 -04:00
parent 2c3479c6e2
commit 2d2a9eac16
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -337,17 +337,17 @@ namespace Game.Entities
{
public void SetRuneState(byte index, bool set = true)
{
var id = CooldownOrder.LookupByIndex(index);
bool foundRune = CooldownOrder.Contains(index);
if (set)
{
RuneState |= (byte)(1 << index); // usable
if (id != 0)
CooldownOrder.RemoveAt(index);
if (foundRune)
CooldownOrder.Remove(index);
}
else
{
RuneState &= (byte)~(1 << index); // on cooldown
if (id == 0)
if (!foundRune)
CooldownOrder.Add(index);
}
}