public override void ModifyHitItem(Player attacker, EntModItem item, NPC target, ref int damage, ref bool crit, ref float[] dr) { item.addElement(type, amount); if (crit) { AddBuff(BuffBase.GetFromIndex(target, type, damage / 3, attacker)); } }
public static bool GC(BuffBase buff) { return(!buff.isActive); }