using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.DamageOverTime { public class Shred : ModBuff { public override void SetDefaults() { DisplayName.SetDefault("Shred"); Description.SetDefault("Blood"); Main.debuff[Type] = true; Main.pvpBuff[Type] = true; Main.buffNoSave[Type] = true; longerExpertDebuff = true; } public override void Update(NPC npc, ref int buffIndex) { if (npc.Calamity().pShred < npc.buffTime[buffIndex]) npc.Calamity().pShred = npc.buffTime[buffIndex]; npc.DelBuff(buffIndex); buffIndex--; } } }