summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorDastgir Pojee <dastgirp@gmail.com>2016-10-03 19:59:45 +0530
committerhemagx <ibrahem.h.basyone@gmail.com>2016-10-22 02:22:17 +0200
commitf7babff8a31981508f1c5fff1aefcc6091c85f00 (patch)
tree67dc0f350af43bfdb2e4fd71d79dc9bf00a68ec5 /src/map/skill.c
parentf42e558870c1d3e267ff39b6de2841c08750c4e8 (diff)
downloadhercules-f7babff8a31981508f1c5fff1aefcc6091c85f00.tar.gz
hercules-f7babff8a31981508f1c5fff1aefcc6091c85f00.tar.bz2
hercules-f7babff8a31981508f1c5fff1aefcc6091c85f00.tar.xz
hercules-f7babff8a31981508f1c5fff1aefcc6091c85f00.zip
Minor Typo fixes, also added tsc declaration
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 30b9f4c0a..b3a060de2 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -2118,6 +2118,7 @@ int skill_strip_equip(struct block_list *bl, unsigned short where, int rate, int
int skill_blown(struct block_list* src, struct block_list* target, int count, int8 dir, int flag)
{
int dx = 0, dy = 0;
+ struct status_change *tsc = status->get_sc(target);
nullpo_ret(src);
@@ -2165,7 +2166,7 @@ int skill_blown(struct block_list* src, struct block_list* target, int count, in
dy = -diry[dir];
}
- if (tsc && tsc->data[SC_SU_STOOP]) // Any knockback will cancel it.
+ if (tsc != NULL && tsc->data[SC_SU_STOOP]) // Any knockback will cancel it.
status_change_end(target, SC_SU_STOOP, INVALID_TIMER);
return unit->blown(target, dx, dy, count, flag); // send over the proper flag
@@ -12321,8 +12322,8 @@ int skill_unit_onplace_timer(struct skill_unit *src, struct block_list *bl, int6
}
break;
case WZ_HEAVENDRIVE:
-+ status_change_end(bl, SC_SV_ROOTTWIST, INVALID_TIMER);
-+ break;
+ status_change_end(bl, SC_SV_ROOTTWIST, INVALID_TIMER);
+ break;
/**
* The storm gust counter was dropped in renewal
**/