Просмотр исходного кода

keepParty flag for projectiles and additional effects blocks

SaltyMonkey лет назад: 6
Родитель
Сommit
34c0adc485
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      lib/unitFps.js

+ 4 - 1
lib/unitFps.js

@@ -139,6 +139,8 @@ class unitFps {
 
 		const isProjectileBlockable = (event) => {
 			if (data.activeMode.blockProjectiles) {
+				if (data.activeMode.blockProjectiles.keepParty && partyMembers.has(event.gameId))
+					return false;
 				if (data.activeMode.blockProjectiles.players && tracker.spawnedPlayers.has(event.gameId)) return true;
 			}
 			return false;
@@ -146,8 +148,9 @@ class unitFps {
 
 		const isEffectBlockable = (event) => {
 			if (data.activeMode.blockAdditionalSkillEffects) {
-				if (data.activeMode.blockAdditionalSkillEffects.players && tracker.spawnedPlayers.has(event.gameId)) return true;
 				if (data.activeMode.blockAdditionalSkillEffects.own && isMe(event.gameId)) return true;
+				if (data.activeMode.blockAdditionalSkillEffects.keepParty && partyMembers.has(event.gameId)) return false;
+				if (data.activeMode.blockAdditionalSkillEffects.players && tracker.spawnedPlayers.has(event.gameId)) return true;
 			}
 			return false;
 		};