@gamepark/mythologies 1.0.16 → 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.
|
@@ -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
|
-
|
|
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));
|
|
@@ -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.
|
|
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.
|
|
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": "
|
|
31
|
+
"gitHead": "4c0737af50e4ffea5cd9a6facc9afbeebb2b0e77"
|
|
32
32
|
}
|