Skip to content

Commit

Permalink
Allow using the skill DB accessors on non-skill attacks (skill_id = 0)
Browse files Browse the repository at this point in the history
This suppresses an assertion in the skill DB accessors when called with
`skill_id = 0` (such as during normal attacks). In such case, they'll
now return an appropriate zero value, as it happened before 2b4bfa5.

Fixes #1909

Signed-off-by: Haru <haru@dotalux.com>
  • Loading branch information
MishimaHaruna committed Nov 24, 2017
1 parent c1c8d6b commit 34a1871
Show file tree
Hide file tree
Showing 3 changed files with 188 additions and 54 deletions.
1 change: 1 addition & 0 deletions src/map/battle.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ struct status_data;

enum {
// Flag of the final calculation
BF_NONE = 0x0000,
BF_WEAPON = 0x0001,
BF_MAGIC = 0x0002,
BF_MISC = 0x0004,
Expand Down
Loading

0 comments on commit 34a1871

Please sign in to comment.