public static void RefreshStacks(NPC npc, int time)
        {
            DebuffHandler dbh = npc.GetGlobalNPC <DebuffHandler>();

            for (int i = 0; i < dbh.BarbedBleeds.Count; i += 1)
            {
                int stacktime = dbh.BarbedBleeds[i].timeLeft;
                dbh.BarbedBleeds[i].timeLeft = Math.Max(time, stacktime);
            }
        }
        public static bool ApplyBleedStack(NPC npc, int time, bool refresh = true)
        {
            DebuffHandler dbh = npc.GetGlobalNPC <DebuffHandler>();

            if (dbh.BarbedBleeds.Count < 5)
            {
                dbh.BarbedBleeds.Add(new BleedStack(time));
                return(true);
            }

            if (refresh)
            {
                RefreshStacks(npc, time);
            }

            return(false);
        }