更改大嘴花攻击范围

This commit is contained in:
星外之神 2022-04-05 11:11:06 +08:00
parent c0db550d67
commit e1dfa8558f

View File

@ -429,7 +429,7 @@ class Chomper(Plant):
def canAttack(self, zombie):
if (self.state == c.IDLE and zombie.state != c.DIGEST and
self.rect.x <= zombie.rect.right and
(self.rect.right + c.GRID_X_SIZE // 3 >= zombie.rect.x)):
(self.rect.right + c.GRID_X_SIZE >= zombie.rect.x)):
return True
return False