修复缠绕水草被死亡僵尸误触的bug
This commit is contained in:
parent
e2546e552d
commit
b5bdf1234c
@ -1406,6 +1406,7 @@ class TangleKlep(Plant):
|
|||||||
self.frames = self.idle_frames
|
self.frames = self.idle_frames
|
||||||
|
|
||||||
def canAttack(self, zombie):
|
def canAttack(self, zombie):
|
||||||
|
if zombie.state != c.DIE and (not zombie.lostHead):
|
||||||
if pg.sprite.collide_circle_ratio(0.7)(zombie, self):
|
if pg.sprite.collide_circle_ratio(0.7)(zombie, self):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user