summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-06-24 14:23:15 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-06-24 14:23:15 +0000
commit8860b98332a06b7bc23e7f0f5ac5ac73b178f87d (patch)
tree31aaf2ece8f6dcc6f0f90f1a5544992e416dd1fd /src/map/skill.c
parent71702bee137bc2b013b5c22fc904a3deec4674f6 (diff)
downloadhercules-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.c17
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
{