Remove familiar pet if it does not have a master or if the master is not valid.

This commit is contained in:
Cekis
2018-03-23 16:03:45 -07:00
committed by CekisSWG
parent 4704e305c8
commit 5cfcd81573
@@ -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))
{