public override bool PreAI(Projectile projectile)
        {
            if (AutoloadMinionDictionary.BuffDictionary.ContainsKey(projectile.type))
            {
                Player player = Main.player[projectile.owner];
                AutoloadMinionPlayer modPlayer = player.GetModPlayer <AutoloadMinionPlayer>();
                if (player.dead || !player.active)
                {
                    modPlayer.ActiveMinionDict[projectile.type] = false;
                }

                if (modPlayer.ActiveMinionDict[projectile.type])
                {
                    projectile.timeLeft = 2;
                }
            }
            return(base.PreAI(projectile));
        }
        public override void Update(Player player, ref int buffIndex)
        {
            AutoloadMinionPlayer modPlayer = player.GetModPlayer <AutoloadMinionPlayer>();

            if (player.ownedProjectileCounts[MinionType] > 0)
            {
                modPlayer.ActiveMinionDict[MinionType] = true;
            }

            if (!modPlayer.ActiveMinionDict[MinionType])
            {
                player.DelBuff(buffIndex);
                buffIndex--;
                return;
            }

            player.buffTime[buffIndex] = 180;
        }