Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func _on_Area_body_entered(body):
- print(body)
- if body is KinematicBody && body._name != "hero":
- target = body
- print(target._name)
- if body is Fireball && defense == true:
- target = body
- print(target._name)
- _getting_hit_on_by_kimberly()
- body.explode()
- return
- if body is Fireball:
- hp -= body._dc_dmg()
- body.explode()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement