From 52ecd9e5b41f87223fd12b24cda4e623a15480ff Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Tue, 8 Oct 2019 18:13:21 -0400 Subject: [PATCH] Yharon now uses modular antibutcher. --- NPCs/Yharon/Yharon.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/NPCs/Yharon/Yharon.cs b/NPCs/Yharon/Yharon.cs index 7e693c4ffa..c91b8d7b22 100644 --- a/NPCs/Yharon/Yharon.cs +++ b/NPCs/Yharon/Yharon.cs @@ -2840,8 +2840,10 @@ namespace CalamityMod.NPCs.Yharon #region StrikeNPC public override bool StrikeNPC(ref double damage, int defense, ref float knockback, int hitDirection, ref bool crit) { - // 10% max health antibutcher. Also prevents hits which would allow skipping phase 2. - if (damage > npc.lifeMax / 10 || (!startSecondAI && dropLoot)) + if (CNPCUtils.AntiButcher(npc, ref damage, 0.1f)) return false; + + // Safeguard to prevent damage which would allow skipping phase 2. + if (!startSecondAI && dropLoot) { damage = 0; return false;