Fix duplication and scenario override for first in the list
| @@ -5309,7 +5309,7 @@ function addChatsSeparator(mesSendString) { | ||
| 5309 | 5309 | } |
| 5310 | 5310 | |
| 5311 | 5311 | async function duplicateCharacter() { |
| 5312 | 5312 | if (this_chid === undefined || !characters[this_chid]) { |
| 5313 | 5313 | toastr.warning(t`You must first select a character to duplicate!`); |
| 5314 | 5314 | return ''; |
| 5315 | 5315 | } |
| @@ -7883,7 +7883,7 @@ function updateFavButtonState(state) { | ||
| 7883 | 7883 | } |
| 7884 | 7884 | |
| 7885 | 7885 | export async function setScenarioOverride() { |
| 7886 | 7886 | if (!selected_group && (this_chid === undefined || !characters[this_chid])) { |
| 7887 | 7887 | console.warn('setScenarioOverride() -- no selected group or character'); |
| 7888 | 7888 | return; |
| 7889 | 7889 | } |