Grave edge sounds and player hit sounds do not play if you are not vulnerable to them.
This commit is contained in:
@@ -144,6 +144,7 @@ class Enemy(Object):
|
||||
|
||||
def attack(self, currentTime, player):
|
||||
"""Perform attack on player"""
|
||||
if player.isInvincible: return
|
||||
self.lastAttackTime = currentTime
|
||||
# Play attack sound
|
||||
attackSound = f"{self.enemyType}_attack"
|
||||
|
Reference in New Issue
Block a user