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

disabled raid cleanse

thought it was already disabled, turns out it was not.
teralove лет назад: 9
Родитель
Сommit
bec7201ffe
1 измененных файлов с 13 добавлено и 11 удалено
  1. 13 11
      index.js

+ 13 - 11
index.js

@@ -368,19 +368,21 @@ module.exports = function AutoLockon(dispatch) {
 		if (partyMemberList.members) {
 		if (partyMemberList.members) {
 			if (partyMemberList.members.length > 5) {
 			if (partyMemberList.members.length > 5) {
 				
 				
-				for (let i in playerBuffs) {
-					if (getDistanceFromMe(playerBuffs[i].cid) >= MAXIMUM_DISTANCE) continue; // too far away
-					if (isPlayerDead(playerBuffs[i].cid)) continue; // is dead
+				// TODO: Fix raid cleansing
+				
+				// for (let i in playerBuffs) {
+					// if (getDistanceFromMe(playerBuffs[i].cid) >= MAXIMUM_DISTANCE) continue; // too far away
+					// if (isPlayerDead(playerBuffs[i].cid)) continue; // is dead
 					
 					
-					if (playerHasAbnormality(playerBuffs[i].abnormals)) {
-						result.push({cid: playerBuffs[i].cid});
-					} else {
-					}
+					// if (playerHasAbnormality(playerBuffs[i].abnormals)) {
+						// result.push({cid: playerBuffs[i].cid});
+					// } else {
+					// }
 					
 					
-					if (result.length >= 4)  {
-						break;
-					}
-				}
+					// if (result.length >= 4)  {
+						// break;
+					// }
+				// }
 			}
 			}
 			else // not in a raid
 			else // not in a raid
 			{
 			{