From 5cfcd81573ce0c716e6136ff9ba33b348bb31b85 Mon Sep 17 00:00:00 2001 From: Cekis Date: Wed, 8 Feb 2017 18:23:35 +0000 Subject: [PATCH] Remove familiar pet if it does not have a master or if the master is not valid. --- sku.0/sys.server/compiled/game/script/ai/familiar.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sku.0/sys.server/compiled/game/script/ai/familiar.java b/sku.0/sys.server/compiled/game/script/ai/familiar.java index ae2ec1f0a..ec9096f76 100755 --- a/sku.0/sys.server/compiled/game/script/ai/familiar.java +++ b/sku.0/sys.server/compiled/game/script/ai/familiar.java @@ -213,6 +213,10 @@ public class familiar extends script.base_script public int handleSetupPet(obj_id self, dictionary params) throws InterruptedException { applySkillStatisticModifier(self, "slope_move", 100); + if(!pet_lib.hasMaster(self)){ + destroyObject(self); + return SCRIPT_CONTINUE; + } obj_id master = getMaster(self); if (!isIdValid(master)) {