@gamepark/mythologies 0.12.2 → 0.12.3

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.
@@ -3,9 +3,7 @@ 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
- import { Pantheon } from '../../material/Pantheon';
7
6
  import { RuleId } from '../RuleId';
8
- import { TriggerEffectsRule } from './TriggerEffectsRule';
9
7
  export class CentaurEffectRule extends MoveEffectRule {
10
8
  ruleId = RuleId.CentaurEffect;
11
9
  getMovingCards(effectCardIndex = this.getEffect().cardIndex) {
@@ -15,8 +13,7 @@ export class CentaurEffectRule extends MoveEffectRule {
15
13
  return areAdjacentSquares(space, cardLocation);
16
14
  }
17
15
  onEndEffect() {
18
- const pantheon = new Pantheon(this.game, this.player);
19
- new TriggerEffectsRule(this.game).triggerEffects(...pantheon.updateGrid());
16
+ this.updateGridAfterMoves();
20
17
  return new CentaurEffectSacrificeRule(this.game).playEffect();
21
18
  }
22
19
  }
@@ -63,14 +63,14 @@ export class ResolveEffectsRule extends PlayerTurnRule {
63
63
  return [
64
64
  ...this.material(MaterialType.GemToken)
65
65
  .location(LocationType.PantheonLineBonus)
66
- .player(this.player)
66
+ .player(pendingEffects.player)
67
67
  .location((l) => pendingEffects.lines.includes(l.y))
68
- .moveItems({ type: LocationType.PlayerGems, player: this.player }),
68
+ .moveItems({ type: LocationType.PlayerGems, player: pendingEffects.player }),
69
69
  ...this.material(MaterialType.FavorToken)
70
70
  .location(LocationType.PantheonColumnBonus)
71
- .player(this.player)
71
+ .player(pendingEffects.player)
72
72
  .location((l) => pendingEffects.columns.includes(l.x))
73
- .moveItems({ type: LocationType.PlayerFavor, player: this.player })
73
+ .moveItems({ type: LocationType.PlayerFavor, player: pendingEffects.player })
74
74
  ];
75
75
  }
76
76
  return [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamepark/mythologies",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
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.1.0",
29
29
  "es-toolkit": "^1.39.10"
30
30
  },
31
- "gitHead": "2312391d6662765b860c62e37693d53b87b66df7"
31
+ "gitHead": "6f3045ccf119810e8294b2e5272f0de5eae820bf"
32
32
  }