diff options
| author | Eltrac <hi@guhub.cn> | 2025-03-14 09:07:43 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-03-14 09:07:43 +0800 |
| commit | 68260338b2cfa9ea73235ca09a2ecd745fa090e5 (patch) | |
| tree | e1b780fe2d35ebfaece431777a0f7e6e4c770a49 | |
| parent | 982e54790e747c5ed5137c14006a44be4afcd9df (diff) | |
chore: remove unused logic
| -rw-r--r-- | objects/Player.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/objects/Player.lua b/objects/Player.lua index 74f9833..1ac6891 100644 --- a/objects/Player.lua +++ b/objects/Player.lua @@ -141,12 +141,9 @@ end function Player:onContact(other, contact) -- detect contact with enemies if other.objectType == "enemy" then - -- if player's dashing, deal damage to enemies - if self.dashing and self.dashing >= G.time then - other:takeDamage(config.player.dash.damage) -- if player's not shielded nor the enemy's stunned -- take the damage - elseif not (other.stunned or self:isShielded()) then + if not (other.stunned or self:isShielded()) then audio.play("getsHit") table.remove(self.hearts) -- shield this player |
