diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-06-24 14:23:15 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-06-24 14:23:15 +0000 |
commit | 8860b98332a06b7bc23e7f0f5ac5ac73b178f87d (patch) | |
tree | 31aaf2ece8f6dcc6f0f90f1a5544992e416dd1fd /src/map/skill.c | |
parent | 71702bee137bc2b013b5c22fc904a3deec4674f6 (diff) | |
download | hercules-8860b98332a06b7bc23e7f0f5ac5ac73b178f87d.tar.gz hercules-8860b98332a06b7bc23e7f0f5ac5ac73b178f87d.tar.bz2 hercules-8860b98332a06b7bc23e7f0f5ac5ac73b178f87d.tar.xz hercules-8860b98332a06b7bc23e7f0f5ac5ac73b178f87d.zip |
Cleaned up unconditional calls to status_change_end().
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12890 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 6886c5141..4fa16de9b 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -2447,19 +2447,14 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, int break; case NJ_ISSEN: - if (sc) { - if (sc->data[SC_NEN]) - status_change_end(src,SC_NEN,-1); - if (sc->data[SC_HIDING]) - status_change_end(src,SC_HIDING,-1); - } + status_change_end(src,SC_NEN,-1); + status_change_end(src,SC_HIDING,-1); + // fall through case MO_EXTREMITYFIST: - if (sc && skillid == MO_EXTREMITYFIST) + if( skillid == MO_EXTREMITYFIST ) { - if (sc->data[SC_EXPLOSIONSPIRITS]) - status_change_end(src, SC_EXPLOSIONSPIRITS, -1); - if (sc->data[SC_BLADESTOP]) - status_change_end(src,SC_BLADESTOP,-1); + status_change_end(src,SC_EXPLOSIONSPIRITS,-1); + status_change_end(src,SC_BLADESTOP,-1); } //Client expects you to move to target regardless of distance { |