更改大嘴花攻击范围
This commit is contained in:
parent
c0db550d67
commit
e1dfa8558f
@ -429,7 +429,7 @@ class Chomper(Plant):
|
|||||||
def canAttack(self, zombie):
|
def canAttack(self, zombie):
|
||||||
if (self.state == c.IDLE and zombie.state != c.DIGEST and
|
if (self.state == c.IDLE and zombie.state != c.DIGEST and
|
||||||
self.rect.x <= zombie.rect.right 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 True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user