@gamepark/mythologies 1.0.16 → 1.0.17

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.
@@ -96,9 +96,12 @@ export class Pantheon extends MaterialRulesPart {
96
96
  }
97
97
  const grid = this.indexGrid;
98
98
  const crushedIndex = grid[move.location.y][move.location.x];
99
- const crushed = crushedIndex !== null ? this.material(MaterialType.EntityCard).getItem(crushedIndex).id.front : undefined;
100
99
  grid[move.location.y][move.location.x] = move.itemIndex;
101
- new TriggerEffectsRule(this.game).triggerCardEffect(move.itemIndex, location, { type: TriggerEventType.SelfPlaced, crushed }, entity);
100
+ const event = { type: TriggerEventType.SelfPlaced };
101
+ if (crushedIndex !== null) {
102
+ event.crushed = this.material(MaterialType.EntityCard).getItem(crushedIndex).id.front;
103
+ }
104
+ new TriggerEffectsRule(this.game).triggerCardEffect(move.itemIndex, location, event, entity);
102
105
  const summoned = this.isSummon;
103
106
  if (summoned) {
104
107
  moves.push(...this.onSummon(move));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamepark/mythologies",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
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": "e2c4b4d214b3672755fe8340d5393d1c75fae46f"
31
+ "gitHead": "62da510f4af0d6790751ef8c24e1faba3e3709af"
32
32
  }