Skip to content

Commit

Permalink
minor fix to useAbility, duplicated chat card
Browse files Browse the repository at this point in the history
  • Loading branch information
Muttley committed Nov 18, 2024
1 parent afd31f0 commit 1c5c8af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/src/documents/ActorSD.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@ export default class ActorSD extends Actor {
async useAbility(itemId, options={}) {
const item = this.items.get(itemId);

if (item.type === "NPC Feature") item.displayCard();
if (item.type === "NPC Feature") return item.displayCard();

// If the ability has limited uses, handle that first
if (item.system.limitedUses) {
Expand Down
2 changes: 1 addition & 1 deletion system/system.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "shadowdark",
"title": "Shadowdark RPG",
"description": "A system for playing the Shadowdark RPG from Arcane Library",
"version": "3.1.3",
"version": "3.2.0",
"compatibility": {
"minimum": "12",
"verified": "12"
Expand Down

0 comments on commit 1c5c8af

Please sign in to comment.