@gamepark/mythologies 1.0.17 → 1.0.18

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.
@@ -1,11 +1,11 @@
1
- import { areAdjacentSquares } from '@gamepark/rules-api';
1
+ import { areAdjacentSquares, isStartSimultaneousRule } from '@gamepark/rules-api';
2
2
  import { isCreature } from '../../material/Entity';
3
3
  import { MoveEffectRule } from '../../material/entity/MoveEffectRule';
4
4
  import { SimultaneousSacrificeEffectRule } from '../../material/entity/SimultaneousSacrificeEffectRule';
5
5
  import { MaterialType } from '../../material/MaterialType';
6
6
  import { Memory } from '../../Memory';
7
- import { ResolveEffectsRule } from './ResolveEffectsRule';
8
7
  import { RuleId } from '../RuleId';
8
+ import { ResolveEffectsRule } from './ResolveEffectsRule';
9
9
  export class CentaurEffectRule extends MoveEffectRule {
10
10
  ruleId = RuleId.CentaurEffect;
11
11
  getMovingCards(effectCardIndex = this.getEffect().cardIndex) {
@@ -18,7 +18,7 @@ export class CentaurEffectRule extends MoveEffectRule {
18
18
  this.memorize(Memory.EntityMoved, true);
19
19
  this.updateGridAfterMoves();
20
20
  const moves = new CentaurEffectSacrificeRule(this.game).playEffect();
21
- if (!moves.length) {
21
+ if (!moves.some(isStartSimultaneousRule)) {
22
22
  moves.push(...new ResolveEffectsRule(this.game).onEndEffect());
23
23
  }
24
24
  return moves;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamepark/mythologies",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "The rules of Mythologies adapted for Game Park",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -28,5 +28,5 @@
28
28
  "@gamepark/rules-api": "~7.5.0",
29
29
  "es-toolkit": "^1.44.0"
30
30
  },
31
- "gitHead": "62da510f4af0d6790751ef8c24e1faba3e3709af"
31
+ "gitHead": "4c0737af50e4ffea5cd9a6facc9afbeebb2b0e77"
32
32
  }