Skip to content

Commit

Permalink
added "is disease" check to Diseases.#registerCreatedDiseaseListener()
Browse files Browse the repository at this point in the history
  • Loading branch information
Forien committed Dec 18, 2023
1 parent fe4d003 commit 0d5ee18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## v1.X.X

### v1.4.1
* Fixed harmless console error that appeared when creating new Item on Actor that isn't a Disease

### v1.4.0
* Added accessory: Amulet of „Resilience“
* Added new career: Monster Hunter
Expand Down
1 change: 1 addition & 0 deletions dist/modules/features/Diseases.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ export default class Diseases extends ForienBaseModule {
async #registerCreatedDiseaseListener(disease) {
if (!game.user.isGM) return;
if (!Utility.getSetting(settings.diseases.autoProgress)) return;
if (disease.type !== 'disease') return;
let actor = disease.actor;

if (!(actor instanceof ActorWfrp4e)) return;
Expand Down

0 comments on commit 0d5ee18

Please sign in to comment.