@@ -404,6 +404,20 @@ it('Execute parallel turn: Regular order (2)', () => {
404404 expect ( errors ) . toEqual ( [ ] ) ;
405405} ) ;
406406
407+ it ( 'Snipe globally banned civ' , ( ) => {
408+ let preset = new Preset ( "test" , Civilisation . ALL , [
409+ new Turn ( Player . HOST , Action . PICK , Exclusivity . GLOBAL ) ,
410+ new Turn ( Player . HOST , Action . BAN , Exclusivity . GLOBAL ) ,
411+ new Turn ( Player . GUEST , Action . SNIPE , Exclusivity . GLOBAL ) ,
412+ ] ) ;
413+ const validator = new Validator ( prepareReadyStore ( preset , [
414+ new PlayerEvent ( Player . HOST , ActionType . PICK , Civilisation . AZTECS ) ,
415+ new PlayerEvent ( Player . HOST , ActionType . BAN , Civilisation . AZTECS ) ,
416+ ] ) ) ;
417+ const errors : ValidationId [ ] = validator . validateAndApply ( DRAFT_ID , new PlayerEvent ( Player . GUEST , ActionType . SNIPE , Civilisation . AZTECS ) ) ;
418+ expect ( errors ) . toEqual ( [ ] ) ;
419+ } ) ;
420+
407421
408422const prepareStore = ( preset : Preset , events : DraftEvent [ ] = [ ] ) : DraftsStore => {
409423 const draft = new Draft ( NAME_HOST , NAME_GUEST , preset ) ;
0 commit comments