Skip to content
Snippets Groups Projects
Commit 9308327c authored by Akhmad Setiawan's avatar Akhmad Setiawan
Browse files

fix: enemy currenthealth getter

parent f68c30d2
Branches pet2
No related merge requests found
...@@ -81,7 +81,7 @@ public class PetDragonMovement : MonoBehaviour ...@@ -81,7 +81,7 @@ public class PetDragonMovement : MonoBehaviour
_anim.SetBool("IsMoving", move); _anim.SetBool("IsMoving", move);
} }
if (closestDamageable == null || closestDamageable.currentHealth < 0) if (closestDamageable == null || closestDamageable.CurrentHealth() < 0)
{ {
Damageables.Remove(closestDamageable); Damageables.Remove(closestDamageable);
closestDamageable = null; closestDamageable = null;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment