Skip to content

Commit

Permalink
Fixed Elemental Change skills versus players (fixes #1411)
Browse files Browse the repository at this point in the history
* Should not be usable on players or Status Immune monsters.
  • Loading branch information
aleos89 committed Jul 2, 2016
1 parent 9f68f78 commit 10d1020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/skill.c
Expand Up @@ -7888,7 +7888,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui
case SA_ELEMENTFIRE:
case SA_ELEMENTGROUND:
case SA_ELEMENTWIND:
if (sd && !dstmd && status_has_mode(tstatus,MD_STATUS_IMMUNE)) // Only works on non-immune monsters.
if (sd && (!dstmd || status_has_mode(tstatus,MD_STATUS_IMMUNE))) // Only works on monsters (Except status immune monsters).
break;
case NPC_ATTRICHANGE:
case NPC_CHANGEWATER:
Expand Down

0 comments on commit 10d1020

Please sign in to comment.