diff --git a/modules/sheets/pokemonCharacterSheet.js b/modules/sheets/pokemonCharacterSheet.js index 947708d..7672a88 100644 --- a/modules/sheets/pokemonCharacterSheet.js +++ b/modules/sheets/pokemonCharacterSheet.js @@ -419,10 +419,10 @@ export default class pokemonCharacterSheet extends api.HandlebarsApplicationMixi calcEffectiveness(context, type) { var effectiveness = 1 - effectiveness *= effectivenessChart[type][context.system.type1] + effectiveness *= this.effectivenessChart[type][context.system.type1] if (context.system.type2 != "") { - effectiveness *= effectivenessChart[type][context.system.type2] + effectiveness *= this.effectivenessChart[type][context.system.type2] } return effectiveness diff --git a/system.json b/system.json index 9dfbf6a..563a8cf 100644 --- a/system.json +++ b/system.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "id": "pokemon", "title": "Pokémon TTRPG", "description": "A Pokémon TTRPG", diff --git a/system.zip b/system.zip index 5ccdc00..29b12cb 100644 Binary files a/system.zip and b/system.zip differ