fix: exclude riven buffs from being a curse (#849)
This commit is contained in:
		
							parent
							
								
									efcaaa56c4
								
							
						
					
					
						commit
						4e8c079171
					
				@ -67,7 +67,9 @@ const randomiseStats = (randomModType: string, fingerprint: IUnveiledRivenFinger
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    fingerprint.curses = [];
 | 
					    fingerprint.curses = [];
 | 
				
			||||||
    if (Math.random() < 0.5) {
 | 
					    if (Math.random() < 0.5) {
 | 
				
			||||||
        const entry = getRandomElement(meta.upgradeEntries!.filter(x => x.canBeCurse));
 | 
					        const entry = getRandomElement(
 | 
				
			||||||
 | 
					            meta.upgradeEntries!.filter(x => x.canBeCurse && !fingerprint.buffs.find(y => y.Tag == x.tag))
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
        fingerprint.curses.push({ Tag: entry.tag, Value: Math.trunc(Math.random() * 0x40000000) });
 | 
					        fingerprint.curses.push({ Tag: entry.tag, Value: Math.trunc(Math.random() * 0x40000000) });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user