Skip to content

Commit

Permalink
Fixing seralizer.
Browse files Browse the repository at this point in the history
  • Loading branch information
augustjohnson committed Mar 15, 2024
1 parent 1dfbaea commit 58e0841
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api_v2/serializers/creature.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ def make_attack_obj(attack):
attack.damage_die_count,
attack.damage_die_type,
attack.damage_bonus,
attack.damage_type
attack.damage_type.key
)

if attack.extra_damage_type:
obj['extra_damage'] = make_damage_obj(
attack.extra_damage_die_count,
attack.extra_damage_die_type,
attack.extra_damage_bonus,
attack.extra_damage_type
attack.extra_damage_type.key
)

return obj
Expand Down

0 comments on commit 58e0841

Please sign in to comment.