From ba87e3ddd0caeac573f1e904261ad9c7cc074438 Mon Sep 17 00:00:00 2001
From: MarcelRyan <marcel.ryan2004@gmail.com>
Date: Fri, 10 May 2024 12:23:20 +0700
Subject: [PATCH] [FIX] pet object reference in rajaAbility

---
 Assets/Scripts/Enemy/RajaAbility.cs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Assets/Scripts/Enemy/RajaAbility.cs b/Assets/Scripts/Enemy/RajaAbility.cs
index eaaad18..91ec7c1 100644
--- a/Assets/Scripts/Enemy/RajaAbility.cs
+++ b/Assets/Scripts/Enemy/RajaAbility.cs
@@ -28,6 +28,8 @@ public class RajaAbility : MonoBehaviour
         player = GameObject.FindGameObjectWithTag("Player");
         playerHealth = player.GetComponent<PlayerHealth>();
         playerMovement = player.GetComponent<PlayerMovement>();
+        petObject = GameObject.FindGameObjectWithTag("PetBuff");
+        petObjectHealth = petObject.GetComponent<PetHealth>();
         anim = GetComponent<Animator>();
 
         // Get weapon manager
-- 
GitLab