Fix creature competence

This commit is contained in:
2020-09-20 19:17:31 +02:00
parent 046e2e97ba
commit ca1a93f9d7
6 changed files with 53 additions and 30 deletions

View File

@ -114,7 +114,7 @@ export class RdDActorCreatureSheet extends ActorSheet {
// On competence change
html.find('.creature-carac').change((event) => {
let compName = event.currentTarget.attributes.compname.value;
this.actor.updateCreatureCompetence( compName, "carac-value", parseInt(event.target.value) );
this.actor.updateCreatureCompetence( compName, "carac_value", parseInt(event.target.value) );
} );
html.find('.creature-niveau').change((event) => {
let compName = event.currentTarget.attributes.compname.value;