public virtual void CheckActive() { Player player = Main.player[projectile.owner]; TaoPlayer modPlayer = player.GetModPlayer <TaoPlayer>(); if (player.dead) { modPlayer.riftMinion = false; } if (modPlayer.riftMinion) { projectile.timeLeft = 2; } }
public override void Update(Player player, ref int buffIndex) { TaoPlayer modPlayer = player.GetModPlayer <TaoPlayer>(); if (player.ownedProjectileCounts[mod.ProjectileType("AbyssalRift")] > 0) { modPlayer.riftMinion = true; } if (!modPlayer.riftMinion) { player.DelBuff(buffIndex); buffIndex--; } else { player.buffTime[buffIndex] = 18000; } }