mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-09-27 13:13:10 -04:00
Remove familiar pet if it does not have a master or if the master is not valid.
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user