Skip to content

Commit

Permalink
Fix crash when discarding a spell
Browse files Browse the repository at this point in the history
  • Loading branch information
Sollace committed Feb 18, 2024
1 parent 2abeff5 commit d07b7bd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ public boolean isDead() {

@Override
public Collection<Spell> getDelegates() {
return List.of(spell.get());
Spell spell = this.spell.get();
return spell == null ? List.of() : List.of(spell);
}

@Override
Expand Down

0 comments on commit d07b7bd

Please sign in to comment.