A creature sharing your square can be punched, as the FAQ allows for the wraith
"Yes, he can be attacked physically, with a DAGGER, punch, etc.": the punch command now takes a creature's id as well as a wizard's. Same square, one point, your attack for the turn, the blind swing's die roll as against a wizard, and no counteraction window since a creature holds no cards. A creature you control is safe from you, the democratic monster excepted, since it claws its creator like anyone. On the board and in first person, tapping an enemy creature in your square with no card selected throws the punch, as tapping a wizard there does; the chronicle names the creature. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0141G6xqLeNRYEtviLWSB5Up
This commit is contained in:
1 parent
8c415836db
commit
88174799e8
4 files changed
+122
-21
No files matched your search
@@ -1105,3 +1105,55 @@ describe("creatures cannot strike the mist (rev 28)", () => {
|
||||
expect(r.ok).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
describe("punching a creature", () => {
|
||||
/** A wraith of `controller`'s standing on `puncher`'s square, `damage` points along. */
|
||||
function wraithUnderfoot(state: GameState, controller: PlayerId, puncher: PlayerId, damage = 0) {
|
||||
const me = state.players.find((p) => p.id === puncher)!;
|
||||
state.creatures.push({
|
||||
id: "w1", kind: "wraith", controllerId: controller, position: { ...me.position },
|
||||
damage, maxDamage: 4, movesPerTurn: 3, movementUsed: 0,
|
||||
wallPassesPerTurn: 1, wallPassUsed: 0, attackUsed: false, justCreated: false, scorchedThisTurn: [],
|
||||
});
|
||||
}
|
||||
function rig(damage = 0) {
|
||||
const state = toRound2(newGame().state);
|
||||
const me = activePlayer(state).id;
|
||||
const other = state.players.find((p) => p.id !== me)!.id;
|
||||
wraithUnderfoot(state, other, me, damage);
|
||||
return { state, me, other };
|
||||
}
|
||||
|
||||
it("a wraith in your square takes one point from a punch, which is your attack and opens no window", () => {
|
||||
const { state, me } = rig();
|
||||
const r = applyCommand(state, me, { type: "punch", targetId: "w1" });
|
||||
expect(r.ok).toBe(true);
|
||||
if (!r.ok) return;
|
||||
expect(r.state.creatures[0]!.damage).toBe(1);
|
||||
expect(r.state.turn.attackUsed).toBe(true);
|
||||
expect(r.state.stack).toBeFalsy();
|
||||
expect(r.events.some((e) => e.type === "punched" && e.target === "w1" && e.kind === "wraith")).toBe(true);
|
||||
expect(applyCommand(r.state, me, { type: "punch", targetId: "w1" }).ok).toBe(false);
|
||||
});
|
||||
|
||||
it("the fourth point destroys it", () => {
|
||||
const { state, me } = rig(3);
|
||||
const r = applyCommand(state, me, { type: "punch", targetId: "w1" });
|
||||
expect(r.ok).toBe(true);
|
||||
if (!r.ok) return;
|
||||
expect(r.state.creatures).toHaveLength(0);
|
||||
expect(r.events.some((e) => e.type === "creatureDestroyed" && e.creatureId === "w1")).toBe(true);
|
||||
});
|
||||
|
||||
it("your own creature is safe from your fists, and one in another square is out of reach", () => {
|
||||
const { state, me } = rig();
|
||||
state.creatures[0]!.controllerId = me;
|
||||
const own = applyCommand(state, me, { type: "punch", targetId: "w1" });
|
||||
expect(own.ok).toBe(false);
|
||||
if (!own.ok) expect(own.error).toMatch(/control/);
|
||||
const { state: far, me: puncher } = rig();
|
||||
far.creatures[0]!.position = emptyNeighborCell(far, far.players.find((p) => p.id === puncher)!.position).cell;
|
||||
expect(applyCommand(far, puncher, { type: "punch", targetId: "w1" }).ok).toBe(false);
|
||||
expect(applyCommand(far, puncher, { type: "punch", targetId: "nobody" }).ok).toBe(false);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user