@gamepark/mythologies 0.12.4 → 0.12.5
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.
|
@@ -23,6 +23,8 @@ export declare enum LocationType {
|
|
|
23
23
|
PlayerDiscard = 22,
|
|
24
24
|
PlayerSelectedCards = 23,
|
|
25
25
|
GameHelpArea = 24,
|
|
26
|
-
CardsCount = 25
|
|
26
|
+
CardsCount = 25,
|
|
27
|
+
SummonGainIcon = 26,
|
|
28
|
+
EntityEffect = 27
|
|
27
29
|
}
|
|
28
30
|
export declare const isInSanctuary: (type?: LocationType) => type is LocationType.SanctuaryCreatureSpot | LocationType.SanctuaryGodSpot;
|
|
@@ -25,5 +25,7 @@ export var LocationType;
|
|
|
25
25
|
LocationType[LocationType["PlayerSelectedCards"] = 23] = "PlayerSelectedCards";
|
|
26
26
|
LocationType[LocationType["GameHelpArea"] = 24] = "GameHelpArea";
|
|
27
27
|
LocationType[LocationType["CardsCount"] = 25] = "CardsCount";
|
|
28
|
+
LocationType[LocationType["SummonGainIcon"] = 26] = "SummonGainIcon";
|
|
29
|
+
LocationType[LocationType["EntityEffect"] = 27] = "EntityEffect";
|
|
28
30
|
})(LocationType || (LocationType = {}));
|
|
29
31
|
export const isInSanctuary = (type) => type === LocationType.SanctuaryCreatureSpot || type === LocationType.SanctuaryGodSpot;
|
|
@@ -6,13 +6,11 @@ import { RuleId } from '../RuleId';
|
|
|
6
6
|
export class DullahanEffectRule extends MoveEffectRule {
|
|
7
7
|
ruleId = RuleId.DullahanEffect;
|
|
8
8
|
onRuleStart() {
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
.filter((item) => pantheon.isAbleToMove(item))
|
|
12
|
-
.getIndexes();
|
|
13
|
-
if (targetEntitiesAbleToMove.length === 0) {
|
|
9
|
+
const moveCardsMoves = this.getMoveCardsMoves();
|
|
10
|
+
if (moveCardsMoves.length === 0) {
|
|
14
11
|
return [this.customMove(CustomMoveType.EndEffect)];
|
|
15
12
|
}
|
|
13
|
+
const targetEntitiesAbleToMove = moveCardsMoves.map((move) => move.itemIndex);
|
|
16
14
|
this.memorize(Memory.TargetEntities, targetEntitiesAbleToMove);
|
|
17
15
|
this.memorize(Memory.EffectCount, targetEntitiesAbleToMove.length);
|
|
18
16
|
const moves = this.getPlayerMoves();
|
|
@@ -129,11 +129,9 @@ export class ResolveEffectsRule extends PlayerTurnRule {
|
|
|
129
129
|
if (!moves.some((move) => move.kind === MoveKind.RulesMove)) {
|
|
130
130
|
moves.push(this.customMove(CustomMoveType.EndEffect));
|
|
131
131
|
}
|
|
132
|
-
console.log('moves', moves);
|
|
133
132
|
return moves;
|
|
134
133
|
}
|
|
135
134
|
onEndEffect() {
|
|
136
|
-
console.log('end effect', JSON.stringify(this.remind(Memory.OngoingEffect)), JSON.stringify(this.remind(Memory.PendingEffects)));
|
|
137
135
|
const moves = [];
|
|
138
136
|
if (this.remind(Memory.OngoingEffect) !== undefined) {
|
|
139
137
|
this.forget(Memory.OngoingEffect);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gamepark/mythologies",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.5",
|
|
4
4
|
"description": "The rules of Mythologies adapted for Game Park",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@gamepark/rules-api": ">=7",
|
|
25
|
-
"es-toolkit": "^1.
|
|
25
|
+
"es-toolkit": "^1.44.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@gamepark/rules-api": "~7.
|
|
29
|
-
"es-toolkit": "^1.
|
|
28
|
+
"@gamepark/rules-api": "~7.2.0",
|
|
29
|
+
"es-toolkit": "^1.44.0"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "610c9b10a35cf3cd109092a2bee80a11451121f5"
|
|
32
32
|
}
|