From 657be6159e995b96017aa6464c3539df4fb9efbb Mon Sep 17 00:00:00 2001 From: dawnDus <96957561+dawndus@users.noreply.github.com> Date: Sat, 5 Mar 2022 13:01:08 -0500 Subject: [PATCH] Fix Sisters and Undead Core bugs --- src/npc/boss/sisters.rs | 8 ++++---- src/npc/boss/undead_core.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/npc/boss/sisters.rs b/src/npc/boss/sisters.rs index 81222f4..d5ac522 100644 --- a/src/npc/boss/sisters.rs +++ b/src/npc/boss/sisters.rs @@ -106,16 +106,16 @@ impl BossNPC { *actr2 -= 1; } else if self.parts[0].action_counter < 60 { *actr2 -= 2; - } else if self.parts[0].action_counter < self.parts[0].action_counter2 { + } else if self.parts[0].action_counter < self.parts[0].action_counter3 { *actr2 -= 4; - } else if self.parts[0].action_counter < self.parts[0].action_counter2 + 40 { + } else if self.parts[0].action_counter < self.parts[0].action_counter3 + 40 { *actr2 -= 2; - } else if self.parts[0].action_counter < self.parts[0].action_counter2 + 60 { + } else if self.parts[0].action_counter < self.parts[0].action_counter3 + 60 { *actr2 -= 1; } else if self.parts[0].life >= 300 { self.parts[0].action_counter = 0; self.parts[0].action_num = 100; - *actr2 = self.parts[0].rng.range(400..700) as i16; + self.parts[0].action_counter3 = self.parts[0].rng.range(400..700) as u16; } else { self.parts[0].action_counter = 0; self.parts[0].action_num = 400; diff --git a/src/npc/boss/undead_core.rs b/src/npc/boss/undead_core.rs index ed75e46..ee7fe04 100644 --- a/src/npc/boss/undead_core.rs +++ b/src/npc/boss/undead_core.rs @@ -395,7 +395,7 @@ impl BossNPC { self.parts[2].action_counter3 = 128; self.parts[6] = self.parts[1].clone(); - self.parts[6].action_counter3 = 1; + self.parts[6].action_counter2 = 1; self.parts[7] = self.parts[1].clone(); self.parts[7].action_counter2 = 1;