summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2008-12-07 01:47:02 -0700
committerFate <fate-tmw@googlemail.com>2008-12-07 01:47:02 -0700
commitc9e5567e98cf7e26c549f4a512eeece24a0d9c81 (patch)
treeffbf7d720f96a25a1f25a72522d0863d6dfecac3 /src/map/skill.c
parent882a84b4d1ab5fb30265b5c9aa14abb20d515da9 (diff)
downloadtmwa-c9e5567e98cf7e26c549f4a512eeece24a0d9c81.tar.gz
tmwa-c9e5567e98cf7e26c549f4a512eeece24a0d9c81.tar.bz2
tmwa-c9e5567e98cf7e26c549f4a512eeece24a0d9c81.tar.xz
tmwa-c9e5567e98cf7e26c549f4a512eeece24a0d9c81.zip
Report all status changes
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 460a328..29e084c 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -7820,6 +7820,16 @@ int skill_status_change_end(struct block_list* bl, int type, int tid)
opt_flag = 1;
break;
+ case SC_SPEEDPOTION0:
+ *opt2 &= ~0x20;
+ opt_flag = 1;
+ break;
+
+ case SC_ATKPOT:
+ *opt2 &= ~0x80;
+ opt_flag = 1;
+ break;
+
case SC_HIDING:
case SC_CLOAKING:
*option &= ~((type == SC_HIDING) ? 2 : 4);
@@ -8677,6 +8687,7 @@ int skill_status_effect(struct block_list *bl, int type, int val1, int val2, int
break;
case SC_SPEEDPOTION0: /* 増速ポーション */
+ *opt2 |= 0x20;
case SC_SPEEDPOTION1:
case SC_SPEEDPOTION2:
calc_flag = 1;
@@ -8686,6 +8697,7 @@ int skill_status_effect(struct block_list *bl, int type, int val1, int val2, int
/* atk & matk potions [Valaris] */
case SC_ATKPOT:
+ *opt2 |= 0x80;
case SC_MATKPOT:
calc_flag = 1;
tick = 1000 * tick;