Update sp.js

This commit is contained in:
mengxinzxz 2023-09-26 13:42:43 +08:00 committed by GitHub
parent 46381662bf
commit 14cec5b6df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1237,9 +1237,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return player.inRange(current)&&get.effect(current,{name:'sha'},player,player)>0;
})) return 0;
var rand=Math.random();
if(rand<0.2&&list.includes(0)) return 0;
if(rand<0.7&&list.includes(1)) return 1;
if(rand<1.0&&list.includes(2)) return 2;
if(rand<0.2) return 0;
if(rand<0.7) return 1;
if(rand<1.0) return 2;
return get.rand(0,2);
}());
'step 1'