@gamepark/mythologies 1.0.8 → 1.0.9

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.
@@ -139,7 +139,7 @@ export declare class MythologiesRules extends SecretMaterialRules<PlayerColor, M
139
139
  hidingStrategies: {
140
140
  2: {
141
141
  2: import("@gamepark/rules-api").HidingStrategy<number, number>;
142
- 3: import("@gamepark/rules-api").HidingStrategy<number, number>;
142
+ 3: (item: MaterialItem) => string[];
143
143
  7: (item: MaterialItem, player?: PlayerColor) => string[];
144
144
  6: (item: MaterialItem, player?: PlayerColor) => string[];
145
145
  };
@@ -144,7 +144,7 @@ export class MythologiesRules extends SecretMaterialRules {
144
144
  hidingStrategies = {
145
145
  [MaterialType.EntityCard]: {
146
146
  [LocationType.GodsDeck]: hideFront,
147
- [LocationType.CreaturesDeck]: hideFront,
147
+ [LocationType.CreaturesDeck]: (item) => (item.location.rotation ? [] : ['id.front']),
148
148
  [LocationType.SanctuaryGodSpot]: (item, player) => ((item.location.rotation ?? player) === player ? [] : ['id.front']),
149
149
  [LocationType.SanctuaryCreatureSpot]: (item, player) => ((item.location.rotation ?? player) === player ? [] : ['id.front'])
150
150
  },
@@ -20,7 +20,9 @@ export class SimultaneousEffectRule extends SimultaneousRule {
20
20
  playersToActivate.push(player);
21
21
  }
22
22
  }
23
- moves.push(this.startSimultaneousRule(this.ruleId, playersToActivate));
23
+ if (playersToActivate.length) {
24
+ moves.push(this.startSimultaneousRule(this.ruleId, playersToActivate));
25
+ }
24
26
  return moves;
25
27
  }
26
28
  onRuleStart() {
@@ -4,6 +4,7 @@ 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';
7
8
  import { RuleId } from '../RuleId';
8
9
  export class CentaurEffectRule extends MoveEffectRule {
9
10
  ruleId = RuleId.CentaurEffect;
@@ -16,7 +17,11 @@ export class CentaurEffectRule extends MoveEffectRule {
16
17
  onEndEffect() {
17
18
  this.memorize(Memory.EntityMoved, true);
18
19
  this.updateGridAfterMoves();
19
- return new CentaurEffectSacrificeRule(this.game).playEffect();
20
+ const moves = new CentaurEffectSacrificeRule(this.game).playEffect();
21
+ if (!moves.length) {
22
+ moves.push(...new ResolveEffectsRule(this.game).onEndEffect());
23
+ }
24
+ return moves;
20
25
  }
21
26
  onCardSacrificed(move) {
22
27
  if (this.remind(Memory.EntityMoved)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamepark/mythologies",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
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.2.0",
29
29
  "es-toolkit": "^1.44.0"
30
30
  },
31
- "gitHead": "7ed053c2f24dabb62f2448977f9ce938defb76bf"
31
+ "gitHead": "446a49e4bc4b4ed6e4e5cfbda5cca97f544101df"
32
32
  }