From dc4bebfce03ba868381c4ea1a2600c49e6934019 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Wed, 1 Mar 2023 00:08:32 +0700 Subject: [PATCH] vanilla debuff effects now affect predrawn enemies --- NPCs/CalamityGlobalNPC.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 91c8b7bfd2..1f5cbd52af 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -5538,6 +5538,10 @@ namespace CalamityMod.NPCs } } + // Vanilla debuff coloring effects + Hunter Potion. This allows GetAlpha (often used in PreDraw) to get vanilla debuff colors + drawColor = npc.GetNPCColorTintedByBuffs(drawColor); + + // Calamity debuff coloring effects if (gState > 0 || eFreeze > 0) drawColor = Color.Cyan;