修复一般子弹的攻击类型问题

This commit is contained in:
星外之神 2022-04-13 16:07:08 +08:00
parent 67708efa32
commit 97223185de

View File

@ -588,7 +588,7 @@ class Level(tool.State):
if bullet.state == c.FLY:
zombie = pg.sprite.spritecollideany(bullet, self.zombie_groups[i], collided_func)
if zombie and zombie.state != c.DIE:
zombie.setDamage(bullet.damage, bullet.ice)
zombie.setDamage(bullet.damage, bullet.ice, damageType=c.ZOMBIE_DEAFULT_DAMAGE)
bullet.setExplode()
def checkZombieCollisions(self):