删除冗余
This commit is contained in:
parent
2c3abb8800
commit
8019b4d254
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user