Fix win counter counting wins in replays
							parent
							
								
									12a580c742
								
							
						
					
					
						commit
						2e5daab81e
					
				|  | @ -60,7 +60,7 @@ function applyPatches(/** @type {ModUtils} */ { replace, replaceOne, replaceRawC | |||
|     // Increment win counter on wins
 | ||||
|     replaceRawCode(`=function(sE){a8.gD[sE]&&(o.ha(sE,2),b.h9<100?xD(0,__L([a8.jx[sE]]),3,sE,ad.gN,ad.kl,-1,!0):xD(0,__L([a8.jx[sE]]),3,sE,ad.gN,ad.kl,-1,!0))`, | ||||
|         `=function(sE){
 | ||||
| 		if (${playerId} === sE && !${gIsSingleplayer}) | ||||
| 		if (${playerId} === sE && !${gIsSingleplayer} && !${dict.game}.${dict.gIsReplay}) | ||||
| 			__fx.wins.count++, window.localStorage.setItem("fx_winCount", __fx.wins.count), | ||||
| 			xD(0,"Your Win Count is now " + __fx.wins.count,3,sE,ad.gN,ad.kl,-1,!0); | ||||
| 		a8.gD[sE]&&(o.ha(sE,2),b.h9<100?xD(0,__L([a8.jx[sE]]),3,sE,ad.gN,ad.kl,-1,!0):xD(0,__L([a8.jx[sE]]),3,sE,ad.gN,ad.kl,-1,!0))`);
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue