Browse Source

keepParty flag for projectiles and additional effects blocks

SaltyMonkey 6 years ago
parent
commit
34c0adc485
1 changed files with 4 additions and 1 deletions
  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;
 		};