@gamepark/mythologies 0.8.1 → 0.8.2
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.
|
@@ -4,7 +4,7 @@ import { RuleId } from '../RuleId';
|
|
|
4
4
|
export declare class DullahanEffectRule extends MoveEffectRule {
|
|
5
5
|
ruleId: RuleId;
|
|
6
6
|
onRuleStart(): MaterialMove<number, number, number, number>[];
|
|
7
|
-
|
|
7
|
+
getMovingCards(): import("@gamepark/rules-api").Material<number, number, number>;
|
|
8
8
|
isLegalDestination(space: XYCoordinates, cardLocation: Location): boolean;
|
|
9
9
|
onCardMoved(move: MoveItem): MaterialMove<number, number, number, number>[];
|
|
10
10
|
onRuleEnd(): never[];
|
|
@@ -30,7 +30,7 @@ var DullahanEffectRule = (function (_super) {
|
|
|
30
30
|
}
|
|
31
31
|
DullahanEffectRule.prototype.onRuleStart = function () {
|
|
32
32
|
var pantheon = new Pantheon_1.Pantheon(this.game, this.player);
|
|
33
|
-
var targetEntitiesAbleToMove = this.
|
|
33
|
+
var targetEntitiesAbleToMove = this.getMovingCards()
|
|
34
34
|
.filter(function (item) { return pantheon.isAbleToMove(item); })
|
|
35
35
|
.getIndexes();
|
|
36
36
|
if (targetEntitiesAbleToMove.length === 0) {
|
|
@@ -44,7 +44,7 @@ var DullahanEffectRule = (function (_super) {
|
|
|
44
44
|
}
|
|
45
45
|
return [];
|
|
46
46
|
};
|
|
47
|
-
DullahanEffectRule.prototype.
|
|
47
|
+
DullahanEffectRule.prototype.getMovingCards = function () {
|
|
48
48
|
return new Pantheon_1.Pantheon(this.game, this.player).visibleEntities.location(function (l) { return l.y === 1; });
|
|
49
49
|
};
|
|
50
50
|
DullahanEffectRule.prototype.isLegalDestination = function (space, cardLocation) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gamepark/mythologies",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "The rules of Mythologies adapted for Game Park",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"i18next": "^22.0.3",
|
|
30
30
|
"lodash": "^4.17.21"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "cd2d58c47c0ec502d6ddd1c0830a5dbe28426608"
|
|
33
33
|
}
|