fBaseXtensions.Game.Hero.Hotbar.HasBuff C# (CSharp) Method

HasBuff() public static method

public static HasBuff ( SNOPower power ) : bool
power SNOPower
return bool
        public static bool HasBuff(SNOPower power)
        {
            if (ShouldRefreshBuffs) RefreshCurrentBuffs();

            int id = (int)power;
            return CurrentBuffs.Keys.Any(u => u == id);
        }