updates
This commit is contained in:
parent
e590baf28d
commit
6382de19c9
15 changed files with 239 additions and 28 deletions
|
|
@ -1,5 +1,7 @@
|
|||
import assert from 'node:assert/strict';
|
||||
import { test } from 'node:test';
|
||||
import { avatarCores, openWindow } from '../src/engine.ts';
|
||||
import { hasRoom } from '../src/query.ts';
|
||||
import { card } from './card.ts';
|
||||
import { Table, type Side } from './table.ts';
|
||||
|
||||
|
|
@ -37,6 +39,16 @@ card('Carbon NanoBots', () => {
|
|||
assert.equal(t.avatar(0, 1).hardware.length, 1);
|
||||
});
|
||||
|
||||
test('no copy can enter a location while a combat is going on there', () => {
|
||||
const t = scene('Broken Bits', 'Carbon NanoBots', { north: { servers: ['Cluster Server'] } });
|
||||
t.own(1, 'C1', 'Cluster Server');
|
||||
assert.ok(hasRoom(t.s, 1, 'C1'), 'the Cluster Server has room for a second defender');
|
||||
t.ram(1, 5);
|
||||
fight(t);
|
||||
assert.ok(t.s.combat, 'North can Replicate, so the combat stops for a response');
|
||||
assert.ok(!hasRoom(t.s, 1, 'C1'));
|
||||
});
|
||||
|
||||
card('Corrupt Driver', () => {
|
||||
const t = scene('Corrupt Driver', 'Broken Bits', { north: { main: ['Additional Core'] } });
|
||||
const hw = t.hardware(1, 1, 'Additional Core');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue