From 68260338b2cfa9ea73235ca09a2ecd745fa090e5 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Fri, 14 Mar 2025 09:07:43 +0800 Subject: chore: remove unused logic --- objects/Player.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'objects') 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 -- cgit v1.2.3