Skip to content

Commit

Permalink
Add cursebound getter to ActorConditions (foundryvtt#15920)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrogrullada authored Aug 8, 2024
1 parent 2d55b86 commit 11e4883
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/module/actor/conditions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ class ActorConditions<TActor extends ActorPF2e> extends DelegatedCollection<Cond
return this.bySlug("clumsy", { active: true }).shift() ?? null;
}

get cursebound(): ConditionPF2e<TActor> | null {
return this.bySlug("cursebound", { active: true }).shift() ?? null;
}

get doomed(): ConditionPF2e<TActor> | null {
return this.bySlug("doomed", { active: true }).shift() ?? null;
}
Expand Down

0 comments on commit 11e4883

Please sign in to comment.