Polterghast clone deals no contact damage while moving into charge position again

This commit is contained in:
CongratsIsTrash committed 2026-02-12 15:49:57 -05:00
1 parent fc4fef138a
commit 91933edb36
1 file changed
+6
+6
View File
@@ -171,6 +171,9 @@ namespace CalamityMod.NPCs.Polterghast
acceleration += revenge ? 0.035f : 0.025f;
}
// Reset contact damage every frame
NPC.damage = NPC.defDamage;
// Predictiveness
Vector2 lookAt = player.Center;
Vector2 rotationVector = lookAt - vector;
@@ -337,6 +340,9 @@ namespace CalamityMod.NPCs.Polterghast
}
else
{
// Do not deal damage during movement to avoid cheap bullshit
NPC.damage = 0;
// Random location choice
if (NPC.ai[0] == 0f)
{