From 5f0a37ed2c821ce3af63aa567e7bd871c8a4f3a7 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Tue, 4 Feb 2020 22:38:16 -0500 Subject: [PATCH] rewrote canhitnpc in nasty cholla --- Projectiles/Rogue/NastyChollaBol.cs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Projectiles/Rogue/NastyChollaBol.cs b/Projectiles/Rogue/NastyChollaBol.cs index 9a90051736..b2a152cdd5 100644 --- a/Projectiles/Rogue/NastyChollaBol.cs +++ b/Projectiles/Rogue/NastyChollaBol.cs @@ -37,10 +37,7 @@ namespace CalamityMod.Projectiles.Rogue int num988 = 15; bool flag54 = false; bool flag55 = false; - float[] var_2_2CB4E_cp_0 = projectile.localAI; - int var_2_2CB4E_cp_1 = 0; - float num73 = var_2_2CB4E_cp_0[var_2_2CB4E_cp_1]; - var_2_2CB4E_cp_0[var_2_2CB4E_cp_1] = num73 + 1f; + projectile.localAI[0] += 1f; if (projectile.localAI[0] % 30f == 0f) { flag55 = true; @@ -216,7 +213,14 @@ namespace CalamityMod.Projectiles.Rogue } //So you can stick a bol up the Guide's ass - public override bool? CanHitNPC(NPC target) => target.type != NPCID.DD2EterniaCrystal && !target.immortal && !target.dontTakeDamage; + public override bool? CanHitNPC(NPC target) + { + if (target.townNPC) + { + return true; + } + return null; + } public override void Kill(int timeLeft) {