Prohibit dashing while dead
This commit is contained in:
parent
d58bc2a71e
commit
eb52c16198
2
main.lua
2
main.lua
|
@ -612,7 +612,7 @@ function Flier:physics_dead ( dt )
|
||||||
end
|
end
|
||||||
|
|
||||||
function Flier:dash ()
|
function Flier:dash ()
|
||||||
if ( self.dashTime > 0 or self.blocking == true ) then
|
if ( self.dashTime > 0 or self.blocking == true or self.living == false ) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
self.dashTime = 1
|
self.dashTime = 1
|
||||||
|
|
Ŝarĝante…
Reference in New Issue