Files
CalamityModPublic/Buffs/StatBuffs/IceShieldBuff.cs
T

25 lines
698 B
C#

using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatBuffs
{
public class IceShieldBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Ice Shield");
Description.SetDefault("Absorbs 20% damage from the next hit you take, then shatters");
Main.buffNoTimeDisplay[Type] = true;
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().sirenIce = true;
}
}
}