@gamepark/skyrift 0.2.1 → 0.2.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.
package/dist/SkyriftRules.js
CHANGED
|
@@ -99,9 +99,7 @@ export class SkyriftRules extends SecretMaterialRules {
|
|
|
99
99
|
const origin = this.material(MaterialType.Card).getItem(move.itemIndex).location;
|
|
100
100
|
if (origin.type === LocationType.PlayArea && move.location.type !== LocationType.PlayArea) {
|
|
101
101
|
const cardRule = new PlayerHelper(this.game).getCardRule(move.itemIndex);
|
|
102
|
-
|
|
103
|
-
moves.push(...cardRule.onLeave());
|
|
104
|
-
}
|
|
102
|
+
moves.push(...cardRule.onLeave());
|
|
105
103
|
}
|
|
106
104
|
}
|
|
107
105
|
return moves;
|
|
@@ -12,12 +12,13 @@ class OzmaTheMageRule extends CardRule {
|
|
|
12
12
|
return [];
|
|
13
13
|
}
|
|
14
14
|
onLeave() {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
if (this.isStunned()) {
|
|
16
|
+
return super.onLeave();
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
const powerTokens = this.material(MaterialType.PowerToken).location(LocationType.CardPowerTokens).parent(this.index);
|
|
20
|
+
return [powerTokens.moveItem({ type: LocationType.PlayerStash, player: this.player }, powerTokens.getQuantity())];
|
|
19
21
|
}
|
|
20
|
-
return moves;
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
export const OzmaTheMage = {
|
|
@@ -10,6 +10,6 @@ export class SoulBladeEffectRule extends DestroyEffectRule {
|
|
|
10
10
|
return this.material(MaterialType.Card)
|
|
11
11
|
.location(LocationType.PlayArea)
|
|
12
12
|
.id((id) => cardProperties[id.front].type === CardType.Creature)
|
|
13
|
-
.index((index) => helper.getCardRule(index).getPower()
|
|
13
|
+
.index((index) => helper.getCardRule(index).getPower() >= 4);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { DestroyEffectRule } from '../../../rules/DestroyEffectRule';
|
|
2
2
|
import { PlayerHelper } from '../../../rules/PlayerHelper';
|
|
3
|
+
import { cardProperties } from '../../CardProperties';
|
|
4
|
+
import { CardType } from '../../CardType';
|
|
3
5
|
import { LocationType } from '../../LocationType';
|
|
4
6
|
import { MaterialType } from '../../MaterialType';
|
|
5
7
|
export class ScallywagEffectRule extends DestroyEffectRule {
|
|
@@ -8,6 +10,7 @@ export class ScallywagEffectRule extends DestroyEffectRule {
|
|
|
8
10
|
const scallywagPower = this.cardRule.getPower();
|
|
9
11
|
return this.material(MaterialType.Card)
|
|
10
12
|
.location(LocationType.PlayArea)
|
|
13
|
+
.id((id) => cardProperties[id.front].type === CardType.Creature)
|
|
11
14
|
.index((index) => helper.getCardRule(index).getPower() < scallywagPower);
|
|
12
15
|
}
|
|
13
16
|
}
|