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

This commit is contained in:
Cekis
2017-02-08 18:23:35 +00:00
parent 1ead2de161
commit f6d1e64df0
@@ -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))
{