@gamepark/skyrift 0.4.2 → 0.4.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.
|
@@ -7,5 +7,4 @@ export declare class BoardingPartyEffectRule extends DestroyEffectRule {
|
|
|
7
7
|
getTargets(): import("@gamepark/rules-api").Material<number, number, number>;
|
|
8
8
|
onCardDestroyed(): import("@gamepark/rules-api").MaterialMove[];
|
|
9
9
|
onCustomMove(move: CustomMove): import("@gamepark/rules-api").MaterialMove[];
|
|
10
|
-
onRuleEnd(): never[];
|
|
11
10
|
}
|
|
@@ -35,10 +35,15 @@ export class DestroyEffectRule extends EffectRule {
|
|
|
35
35
|
}
|
|
36
36
|
onCardDestroyed() {
|
|
37
37
|
const remaining = this.memorize(Memory.EffectCount, (c) => c - 1);
|
|
38
|
-
|
|
38
|
+
if (remaining <= 0 || !this.getTargets().length) {
|
|
39
|
+
return this.endEffect();
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
return [];
|
|
43
|
+
}
|
|
39
44
|
}
|
|
40
|
-
|
|
45
|
+
onEndEffect() {
|
|
41
46
|
this.forget(Memory.EffectCount);
|
|
42
|
-
return
|
|
47
|
+
return super.onEndEffect();
|
|
43
48
|
}
|
|
44
49
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gamepark/skyrift",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "The rules of SkyRift adapted for Game Park",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"es-toolkit": "^1.43.0",
|
|
31
31
|
"vitest": "^4.0.15"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "3ba3141e89e6204dd3acf7351054af00ec9ee46d"
|
|
34
34
|
}
|