Files
CalamityModPublic/Buffs/StatDebuffs/Enraged.cs
T

23 lines
638 B
C#

using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatDebuffs
{
public class Enraged : ModBuff
{
public override void SetStaticDefaults()
{
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
// Demonshade Enrage is a tag buff. Nothing is immune to it.
BuffID.Sets.IsATagBuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex) => player.Calamity().enraged = true;
}
}