add no Random

This commit is contained in:
Vick Scarlet
2021-08-17 20:55:19 +08:00
parent 34750ae79e
commit 0259472f9a

View File

@@ -20,7 +20,8 @@ class Event {
}
check(eventId, property) {
const { include, exclude } = this.get(eventId);
const { include, exclude, NoRandom } = this.get(eventId);
if(NoRandom) return false;
if(exclude && checkCondition(property, exclude)) return false;
if(include) return checkCondition(property, include);
return true;