Remove useless timer condition when checking if hitting the hitter

This commit is contained in:
upsilon 2017-01-08 10:35:53 +01:00
parent 15e57c0397
commit 5a38a386eb
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ local function arrow_step(self, dtime)
local hit = function(pos, node, obj)
if obj then
if obj:is_player() then
if self.timer > 0.2 and obj:get_player_name() == self.player then -- Avoid hitting the hitter
if obj:get_player_name() == self.player then -- Avoid hitting the hitter
return
end
end