删除冗余

This commit is contained in:
星外之神 2022-04-06 23:17:53 +08:00
parent 2c3abb8800
commit 8019b4d254

View File

@ -588,12 +588,6 @@ class Squash(Plant):
def attacking(self): def attacking(self):
if self.squashing: if self.squashing:
'''
for zombie in self.zombie_group:
if self.canAttack(zombie):
zombie.setDamage(1800, False)
'''
if (self.frame_index + 1) == self.frame_num: if (self.frame_index + 1) == self.frame_num:
self.attack_zombie.kill() self.attack_zombie.kill()
for zombie in self.zombie_group: for zombie in self.zombie_group: