Skip to content

Commit

Permalink
Fix missing check element for non-damage skill (#4664)
Browse files Browse the repository at this point in the history
* Fixes #4661.
* Resolves an issue with an element resistance check.
Thanks to @reunite-ro and @attackjom!
  • Loading branch information
attackjom committed Feb 26, 2020
1 parent 836eda4 commit 18ab64f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/skill.cpp
Expand Up @@ -6253,7 +6253,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui
tsce = (tsc && type != -1)?tsc->data[type]:NULL;

if (src!=bl && type > -1 &&
CHK_ELEMENT((i = skill_get_ele(skill_id, skill_lv))) &&
CHK_ELEMENT((i = skill_get_ele(skill_id, skill_lv))) && i > ELE_NEUTRAL &&
skill_get_inf(skill_id) != INF_SUPPORT_SKILL &&
battle_attr_fix(NULL, NULL, 100, i, tstatus->def_ele, tstatus->ele_lv) <= 0)
return 1; //Skills that cause an status should be blocked if the target element blocks its element.
Expand Down

0 comments on commit 18ab64f

Please sign in to comment.