修复一般子弹的攻击类型问题
This commit is contained in:
parent
67708efa32
commit
97223185de
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user