@@ -11,14 +11,14 @@ export default function () {
1111 /**
1212 * Add right click option to actors to add all basic skills
1313 */
14- Hooks . on ( "getActorDirectoryEntryContext " , async ( html , options ) => {
14+ Hooks . on ( "getActorContextOptions " , async ( html , options ) => {
1515 options . push (
1616 {
1717 name : game . i18n . localize ( "ACTOR.AddBasicSkills" ) ,
1818 condition : game . user . isGM ,
1919 icon : '<i class="fas fa-plus"></i>' ,
2020 callback : target => {
21- const actor = game . actors . get ( target . attr ( 'data-document-id' ) ) ;
21+ const actor = game . actors . get ( target . dataset . entryId ) ;
2222 actor . addBasicSkills ( ) ;
2323 }
2424 } )
@@ -28,7 +28,7 @@ export default function () {
2828 name : game . i18n . localize ( "ACTOR.ClearMount" ) ,
2929 icon : '<i class="fas fa-horse"></i>' ,
3030 callback : target => {
31- const actor = game . actors . get ( target . attr ( 'data-document-id' ) ) ;
31+ const actor = game . actors . get ( target . dataset . entryId ) ;
3232 return actor . update ( {
3333 "system.status.mount" : {
3434 "id" : "" ,
@@ -49,7 +49,7 @@ export default function () {
4949 condition : game . user . isGM ,
5050 icon : '<i class="fa fa-download"></i>' ,
5151 callback : target => {
52- const actor = game . actors . get ( target . attr ( 'data-document-id' ) ) ;
52+ const actor = game . actors . get ( target . dataset . entryId ) ;
5353 new StatBlockParser ( actor ) . render ( true )
5454 }
5555 } )
0 commit comments