Deva USSR Terrarian Sep 21, 2020 #1 i need help with making a weapon that ignores the anti butcher mechanics like the pestilence from the echoes of the ancients
i need help with making a weapon that ignores the anti butcher mechanics like the pestilence from the echoes of the ancients
ScalarVector Terrarian Sep 22, 2020 #2 C#: public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit) { target.life = 0; } Or alternatively C#: public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit) { target.active = false; }
C#: public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit) { target.life = 0; } Or alternatively C#: public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit) { target.active = false; }