Fix double effet créatures

This commit is contained in:
Vincent Vandemeulebrouck
2021-01-19 23:39:35 +01:00
parent 807e58e36a
commit 7db9834b9a
8 changed files with 38 additions and 121 deletions

View File

@ -207,9 +207,10 @@ export class RdDActorSheet extends ActorSheet {
this.actor.encaisser();
});
html.find('#remise-a-neuf').click(ev => {
html.find('.remise-a-neuf').click(ev => {
if (game.user.isGM) {
this.actor.remiseANeuf();
ev.preventDefault();
}
});
html.find('#creer-tache').click(ev => {