Skip to content

Commit

Permalink
Make DamageType defaults to NK_NONE
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenpachi2k13 committed Jun 2, 2020
1 parent 452dd30 commit 147a491
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion db/pre-re/skill_db.conf
Expand Up @@ -87,7 +87,7 @@
"Ele_Weapon" - Uses weapon's element.
"Ele_Endowed" - Uses Endowed element.
"Ele_Random" - Uses random element.
DamageType: { (bool, default to "NoDamage")
DamageType: { (bool, default to "NK_NONE")
NoDamage: true/false No damage skill
SplashArea: true/false Has splash area (requires source modification)
SplitDamage: true/false Damage should be split among targets (requires 'SplashArea' in order to work)
Expand Down
2 changes: 1 addition & 1 deletion db/re/skill_db.conf
Expand Up @@ -87,7 +87,7 @@
"Ele_Weapon" - Uses weapon's element.
"Ele_Endowed" - Uses Endowed element.
"Ele_Random" - Uses random element.
DamageType: { (bool, default to "NoDamage")
DamageType: { (bool, default to "NK_NONE")
NoDamage: true/false No damage skill
SplashArea: true/false Has splash area (requires source modification)
SplitDamage: true/false Damage should be split among targets (requires 'SplashArea' in order to work)
Expand Down
3 changes: 0 additions & 3 deletions src/map/skill.c
Expand Up @@ -21208,9 +21208,6 @@ static void skill_validate_damagetype(struct config_setting_t *conf, struct s_sk
}
}
}

if (sk->nk == NK_NONE)
sk->nk = NK_NO_DAMAGE;
}

/**
Expand Down

0 comments on commit 147a491

Please sign in to comment.