forked from MagicBane/Server
remove pet properly when no owner found
This commit is contained in:
1 parent
7289f9e006
commit
235b5e7375
1 file changed
+2
-1
@@ -17,7 +17,8 @@ import java.util.Map;
|
||||
public class PlayerPet {
|
||||
|
||||
public static void process(Mob pet){
|
||||
if(pet.getOwner() == null){
|
||||
if(pet.getOwner() == null && !pet.isNecroPet()){
|
||||
pet.killCharacter("no owner");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user