diff --git a/source/component/plant.py b/source/component/plant.py index 5518aab..d9106bd 100755 --- a/source/component/plant.py +++ b/source/component/plant.py @@ -848,7 +848,7 @@ class Spikeweed(Plant): if self.canAttack(zombie): # 有车的僵尸 if zombie.name in {c.ZOMBONI}: - zombie.health = 0 + zombie.health = zombie.lostHeadHealth killSelf = True else: zombie.setDamage(20, damageType=c.ZOMBIE_COMMON_DAMAGE) diff --git a/source/component/zombie.py b/source/component/zombie.py index 1742254..6d62bad 100755 --- a/source/component/zombie.py +++ b/source/component/zombie.py @@ -988,7 +988,7 @@ class Zomboni(Zombie): elif self.health <= c.ZOMBONI_DAMAGED1_HEALTH: self.changeFrames(self.walk_damaged1_frames) - if (self.current_time - self.walk_timer) > (c.ZOMBIE_WALK_INTERVAL * self.getTimeRatio()): + if (self.current_time - self.walk_timer) > (c.ZOMBIE_WALK_INTERVAL * self.getTimeRatio()) and (not self.lostHead): self.walk_timer = self.current_time if self.is_hypno: self.rect.x += 1