SaltyMonkey лет назад: 6
Родитель
Сommit
24665f87fa
2 измененных файлов с 6 добавлено и 1 удалено
  1. 3 0
      lib/unitFps.js
  2. 3 1
      settings/presets/common.json

+ 3 - 0
lib/unitFps.js

@@ -120,7 +120,10 @@ class unitFps {
 		};
 
 		const isSkillBlockable = (event) => {
+			if(isMe(event.gameId)) return false;
 			if (data.activeMode.blockSkills) {
+				if (data.activeMode.blockSkills.all)
+					return true;
 				if (data.activeMode.blockSkills.class && utils.arraysHasIntersect(data.userTemplateToClassMap[event.templateId], data.activeMode.blockSkills.class))
 					return true;
 				else if (data.activeMode.blockPlayers.rawId && utils.arraysHasIntersect(event.skill.id, data.activeMode.blockSkills.rawId))

+ 3 - 1
settings/presets/common.json

@@ -56,6 +56,7 @@
 				"area": false
 			},
 			"blockSkills": {
+				"all": false,
 				"class": [],
 				"rawId": [],
 				"extended": {
@@ -119,6 +120,7 @@
 				"area": true
 			},
 			"blockSkills": {
+				"all": false,
 				"class": [],
 				"rawId": [],
 				"extended": {
@@ -182,10 +184,10 @@
 				"area": true
 			},
 			"blockSkills": {
+				"all": true,
 				"class": [],
 				"rawId": [],
 				"extended": {
-
 				}
 			},
 			"blockNpcs": {