[FIX] Corregits impactes mentres warping en el jefe
This commit is contained in:
+4
-4
@@ -41,7 +41,7 @@ function imp.new(_hab,_x,_y)
|
||||
pattern= pattern.new(),
|
||||
analisis = {}, -- memoria per a guardar el resultat de l'analisis
|
||||
step_length=1,
|
||||
energia=1,
|
||||
energia=21,
|
||||
max_energia=21,
|
||||
jump_height=0,
|
||||
max_jump_height=24,
|
||||
@@ -202,10 +202,11 @@ end
|
||||
|
||||
|
||||
function imp:update_disappearing()
|
||||
print_dbg(">>>>>>>>>> update_disappearing "..self.wait)
|
||||
if not self.enabled then return end
|
||||
-- print_dbg(">>>>>>>>>> update_disappearing "..self.wait)
|
||||
-- if not self.enabled then return end
|
||||
|
||||
-- Que pasa quan "mor"
|
||||
self.enabled = false
|
||||
local step_time = self.disappear_time
|
||||
if self.can_warp then
|
||||
step_time = self.disappear_time/2; -- warp, wait
|
||||
@@ -223,7 +224,6 @@ print_dbg(">>>>>>>>>> update_disappearing "..self.wait)
|
||||
self.moure = self.noop
|
||||
else
|
||||
if not self.warping then
|
||||
self.enabled = false
|
||||
print("END BOSS")
|
||||
-- stages.stage1_boss_finished()
|
||||
states:executar("stage1_boss_outro", true)
|
||||
|
||||
Reference in New Issue
Block a user