微调逻辑

This commit is contained in:
星外之神 2022-05-20 14:52:08 +08:00
parent c68cc7c4d5
commit 909b83ae3c

View File

@ -646,7 +646,7 @@ class Chomper(Plant):
pg.mixer.Sound(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))) ,"resources", "sound", "bigchomp.ogg")).play()
if self.attack_zombie.alive():
self.shouldDiggest = True
self.attack_zombie.kill()
self.attack_zombie.kill()
if (self.frame_index + 1) == self.frame_num:
if self.shouldDiggest:
self.setDigest()