@gamepark/mythologies 1.0.18 → 1.0.19
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isMoveItemType } from '@gamepark/rules-api';
|
|
2
2
|
import { CustomMoveType } from '../../CustomMoveType';
|
|
3
3
|
import { Memory } from '../../Memory';
|
|
4
|
+
import { isGod } from '../Entity';
|
|
4
5
|
import { LocationType } from '../LocationType';
|
|
5
6
|
import { MaterialType } from '../MaterialType';
|
|
6
7
|
import { Pantheon } from '../Pantheon';
|
|
@@ -30,7 +31,8 @@ export class PlaceCardEffectRule extends PlayerEffectRule {
|
|
|
30
31
|
}
|
|
31
32
|
getPlayerMoves(cardIndex = this.getEffect().cardIndex) {
|
|
32
33
|
const player = this.material(MaterialType.EntityCard).getItem(cardIndex).location.player;
|
|
33
|
-
const
|
|
34
|
+
const pantheon = new Pantheon(this.game, player);
|
|
35
|
+
const cards = this.getCardsToPlace(cardIndex).id((id) => !isGod(id.front) || pantheon.gems >= 4);
|
|
34
36
|
return this.getAvailableDestinations(cardIndex).flatMap(({ x, y }) => {
|
|
35
37
|
return cards.moveItems({ type: LocationType.Pantheon, player, x, y });
|
|
36
38
|
});
|
|
@@ -17,7 +17,6 @@ export class RakshasaEffectRule extends PlaceCardEffectRule {
|
|
|
17
17
|
}
|
|
18
18
|
getAvailableDestinations(cardIndex) {
|
|
19
19
|
const location = this.material(MaterialType.EntityCard).getItem(cardIndex).location;
|
|
20
|
-
|
|
21
|
-
return pantheon.isLegalSpaceToSummon(location) ? [location] : [];
|
|
20
|
+
return [location];
|
|
22
21
|
}
|
|
23
22
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gamepark/mythologies",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
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": "bf1a375528c4daf9ce01b8b36f5816a1750a0463"
|
|
32
32
|
}
|