mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-27 16:56:48 -04:00
Added check to make sure thing entering a mine area is valid and exists (i.e. it's not already dead).
This commit is contained in:
Regular → Executable
+7
-10
@@ -1,17 +1,11 @@
|
||||
package script.systems.combat;
|
||||
|
||||
import script.*;
|
||||
import script.base_class.*;
|
||||
import script.combat_engine.*;
|
||||
import java.util.Arrays;
|
||||
import java.util.Hashtable;
|
||||
import java.util.Vector;
|
||||
import script.base_script;
|
||||
|
||||
import script.library.utils;
|
||||
import script.library.combat;
|
||||
import script.library.colors;
|
||||
import script.library.attrib;
|
||||
import script.library.colors;
|
||||
import script.library.utils;
|
||||
|
||||
import java.util.Vector;
|
||||
|
||||
public class combat_mine extends script.base_script
|
||||
{
|
||||
@@ -169,6 +163,9 @@ public class combat_mine extends script.base_script
|
||||
}
|
||||
public int OnTriggerVolumeEntered(obj_id self, String volumeName, obj_id breacher) throws InterruptedException
|
||||
{
|
||||
if(!isIdValid(self) || !exists(self)){
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
if (isDeactivated())
|
||||
{
|
||||
return SCRIPT_CONTINUE;
|
||||
|
||||
Reference in New Issue
Block a user