mirror of
https://bitbucket.org/seefoe/dsrc.git
synced 2026-09-11 21:45:23 -04:00
Added god mode checks to all QA and testing scripts.
This commit is contained in:
Regular → Executable
+3
@@ -134,6 +134,9 @@ public class ai_test extends script.base_script
|
||||
}
|
||||
public int OnAttach(obj_id self) throws InterruptedException
|
||||
{
|
||||
if(!isGod(self) || getGodLevel(self) < 10 || !isPlayer(self)){
|
||||
detachScript(self, "test.ai_test");
|
||||
}
|
||||
setObjVar(self, "blahblah", 1);
|
||||
start(self);
|
||||
return SCRIPT_CONTINUE;
|
||||
|
||||
Reference in New Issue
Block a user