diff options
| author | Eltrac <hi@guhub.cn> | 2025-03-12 17:23:05 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-03-12 17:23:05 +0800 |
| commit | 72945016b0648b64bbb58f8ddb7792b45be88fbe (patch) | |
| tree | ba057f65c355ddcf0065d97265a6723368d2f2e3 /objects/Player.lua | |
| parent | 53e254e5a8e4c2434563161fe4a0b43e3143cdd9 (diff) | |
fix: bullet collide with player itself
Diffstat (limited to 'objects/Player.lua')
| -rw-r--r-- | objects/Player.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/objects/Player.lua b/objects/Player.lua index bb32cd7..e53192d 100644 --- a/objects/Player.lua +++ b/objects/Player.lua @@ -87,7 +87,7 @@ function Player:shoot(target) end -- shoot the bullet - bullets.fire(currentBullet, target.x, target.y, self.x, self.y) + bullets.fire(currentBullet, target, self) table.remove(self.hearts) G.player.shootCooldown = G.time + config.playerShootCooldown |
