Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
SalieriC committed Jul 3, 2023
1 parent 4c874e3 commit 09f3ad6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
Binary file modified swim.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion swim/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"minimum": 11,
"verified": "11.304"
},
"version": "2.0.0",
"version": "2.0.1",
"authors": [
{
"name": "SalieriC",
Expand Down
2 changes: 1 addition & 1 deletion swim/scripts/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Hooks.on(`ready`, () => {
brsw_hooks()

//Setup actions for BRSW:
if (game.settings.get('swim', 'br2Support') === true) {
if (game.modules.get('betterrolls-swade2')?.active && game.settings.get('swim', 'br2Support') === true) {
brsw_actions_setup()
}

Expand Down
1 change: 1 addition & 0 deletions swim/scripts/settings.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* globals game, FormApplication, $ */

import * as SWIM from './constants.js'
import { swim_buttons } from './buttons.js'

export const settingVariables = [
{id: 'swdUnshake', config_type: Boolean, tab: "Setting Rules", default: false},
Expand Down
4 changes: 2 additions & 2 deletions swim/scripts/swim_modules/mighty-summoner.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* also play a visual effect. SFX and VFX are configured
* in the module settings of SWIM.
*
* v. 1.4.5
* v. 1.4.6
* By SalieriC
******************************************************/
function generate_id(length = 16) {
Expand Down Expand Up @@ -319,7 +319,7 @@ export async function summoner_gm(data) {
}
let scCopy = await Actor.create(scPreset) //create the new actor first
//Now that a new actor is created, we need the Construct and Fearless abilities if a pack is defined:
if (packName || packName != 'none') {
if (packName && packName != 'none') {
const pack = game.packs.get(packName)
const contents = await pack.getDocuments()
const constructAbility = contents.find(i => i.name.toLowerCase() === game.i18n.localize("SWIM.ability-construct").toLowerCase())
Expand Down

0 comments on commit 09f3ad6

Please sign in to comment.