src/scripts/combat.js
//if switching to Status panel and back this will redraw screen and call this.next; to avoid this set next only in clickhandler 
if switching to Status panel and back this will redraw screen and call this.next; to avoid this set next only in clickhandler
if switching to Status panel and back this will redraw screen and call this . next ; to avoid this set next only in clickhandler
printNextLink(nextState,label="Next") {
  let entry = document.createElement('a');
  entry.href='javascript:void(0)';
  entry.addEventListener('click',(function(me,nextState)
  {return(function() {
    window.gm.Encounter.next=nextState;
    window.story.show('EncounterStartTurn');
  });
  }(this,nextState)));
  entry.textContent=label;
  $("div#choice2")[0].appendChild(entry);
}
printNextLink ( nextState , label = "Next" ) { let entry = document . createElement ( 'a' ) ; entry . href = 'javascript:void(0)' ; entry . addEventListener ( 'click' , ( function ( me , nextState ) { return ( function ( ) { window . gm . Encounter . next = nextState ; window . story . show ( 'EncounterStartTurn' ) ; } ) ; } ( this , nextState ) ) ) ; entry . textContent = label ; $ ( "div#choice2" ) [ 0 ] . appendChild ( entry ) ; }
if switching to Status panel and back this will redraw screen and call this.next; to avoid this set next only in clickhandler
if switching to Status panel and back this will redraw screen and call this . next ; to avoid this set next only in clickhandler