Reject stale battle save attack intents
This commit is contained in:
@@ -54,6 +54,8 @@ try {
|
||||
['unknown attack intent unit id', { attackIntents: [{ attackerId: 'liu-bei', targetId: 'ghost-unit' }] }],
|
||||
['self-targeting attack intent', { attackIntents: [{ attackerId: 'liu-bei', targetId: 'liu-bei' }] }],
|
||||
['duplicate attack intent attacker id', { attackIntents: [{ attackerId: 'liu-bei', targetId: 'rebel-1' }, { attackerId: 'liu-bei', targetId: 'rebel-1' }] }],
|
||||
['defeated attack intent attacker', { units: patchUnit(0, { hp: 0 }) }],
|
||||
['defeated attack intent target', { units: patchUnit(2, { hp: 0 }) }],
|
||||
['invalid units array', { units: {} }],
|
||||
['too high unit level', { units: patchUnit(0, { level: 100, exp: 0 }) }],
|
||||
['invalid unit exp threshold', { units: patchUnit(0, { exp: 100 }) }],
|
||||
|
||||
Reference in New Issue
Block a user