修复樱桃炸弹爆炸闪退bug,修复撑杆跳触发土豆雷的bug
This commit is contained in:
parent
0ad4597eef
commit
cb23817b0d
@ -735,7 +735,7 @@ class PotatoMine(Plant):
|
||||
self.is_init = False
|
||||
|
||||
def canAttack(self, zombie):
|
||||
if (self.name == c.POLE_VAULTING_ZOMBIE and (not self.jumped)):
|
||||
if (zombie.name == c.POLE_VAULTING_ZOMBIE and (not zombie.jumped)):
|
||||
return False
|
||||
# 这里碰撞应当比碰撞一般更容易,就设置成圆形或矩形模式,不宜采用mask
|
||||
elif (pg.sprite.collide_circle_ratio(0.7)(zombie, self) and
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user