fixed attack in state machine
This commit is contained in:
@@ -45,10 +45,5 @@ func explode():
|
||||
body.recoil.add_recoil(Vector3(1,.1,.1),10,10)
|
||||
if body.has_method("hit") and !body.is_in_group("player"):
|
||||
body.hit(1)
|
||||
if body.is_in_group("enemy"):
|
||||
body.knocked = true
|
||||
body.stunned = true
|
||||
print("knocked")
|
||||
body.knocked_timer.start()
|
||||
body.stunned_timer.start()
|
||||
body.velocity += blast_velocity
|
||||
if body is Enemy:
|
||||
body.stun()
|
||||
|
||||
Reference in New Issue
Block a user