Fixed bug with phase projectile

This commit is contained in:
Logan 2020-07-21 15:02:07 -05:00
parent 343a66396b
commit 2e71f04731
2 changed files with 11 additions and 1 deletions

View file

@ -13,4 +13,13 @@ tile_data = PoolIntArray( 65536, 0, 8, 65537, 0, 10, 65538, 0, 10, 65539, 0, 10,
position = Vector2( 60, 176 )
[node name="Ogre" parent="." instance=ExtResource( 3 )]
position = Vector2( 345, 153 )
position = Vector2( 346, 167 )
[node name="Ogre2" parent="." instance=ExtResource( 3 )]
position = Vector2( 415, 164 )
[node name="Ogre" parent="Ogre2" instance=ExtResource( 3 )]
position = Vector2( 37, -1 )
[node name="Ogre2" parent="Ogre2" instance=ExtResource( 3 )]
position = Vector2( 67, -5 )

View file

@ -9,5 +9,6 @@ func _ready():
func _on_body_entered(body):
if body.get("health") != null:
body.play_hit()
body.health -= damage * damage_mod