summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
**/