pixi-rainman-game-engine 0.1.14 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -250,8 +250,15 @@ export class AbstractController {
250
250
  }
251
251
  }
252
252
  }
253
- if (this.mysteryFxSymbolMustFormWinningLine)
254
- return this.config.streakMap.has(streak.join("")) ? reelsIndexesWithScatter : [];
253
+ if (this.mysteryFxSymbolMustFormWinningLine) {
254
+ if (this.config.streakMap.has(streak.join("")))
255
+ return reelsIndexesWithScatter;
256
+ const couldFormWinningLine = Array.from({ length: RainMan.config.numberOfRows }, (_, row) => [
257
+ ...streak,
258
+ row,
259
+ ]).some((streak) => this.config.streakMap.has(streak.join("")));
260
+ return couldFormWinningLine ? reelsIndexesWithScatter : [];
261
+ }
255
262
  return reelsIndexesWithScatter;
256
263
  }
257
264
  handleSpinLogic() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixi-rainman-game-engine",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "This repository contains all of the mechanics that used in rainman games.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",