Update combat_ship_player.java

This commit is contained in:
AconiteX
2021-10-05 23:40:58 -04:00
parent b2abff0972
commit 2256c02c05

View File

@@ -2991,7 +2991,7 @@ public class combat_ship_player extends script.base_script
if (objChipsToRemove != null)
{
for (obj_id anObjChipsToRemove : objChipsToRemove) {
if(hasObjVar(anObjChipsToRemove, "strDroidCommand"))
if(utils.isNestedWithin(anObjChipsToRemove, self) && hasObjVar(anObjChipsToRemove, "strDroidCommand"))
{
space_combat.destroyObject(anObjChipsToRemove);
}