summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2008-12-01 14:05:09 -0700
committerFate <fate-tmw@googlemail.com>2008-12-01 14:05:09 -0700
commit28677f9e8071015f65a81254232d12da6393f144 (patch)
tree78de457ad6410acfafcb4a8138d876af1f6fb36a /src/map/skill.c
parent41ad58a56c0f9d27ca61709141115981520fc9ea (diff)
downloadtmwa-28677f9e8071015f65a81254232d12da6393f144.tar.gz
tmwa-28677f9e8071015f65a81254232d12da6393f144.tar.bz2
tmwa-28677f9e8071015f65a81254232d12da6393f144.tar.xz
tmwa-28677f9e8071015f65a81254232d12da6393f144.zip
Added mutations to mobs (must change mob_db.txt)
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 9047e7f..460a328 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -8227,8 +8227,8 @@ int skill_status_change_timer(int tid, unsigned int tick, int id, int data)
case SC_SELFDESTRUCTION: /* 自爆 */
if(--sc_data[type].val3>0){
struct mob_data *md;
- if(bl->type==BL_MOB && (md=(struct mob_data *)bl) && md->speed > 250){
- md->speed -= 250;
+ if(bl->type==BL_MOB && (md=(struct mob_data *)bl) && md->stats[MOB_SPEED] > 250){
+ md->stats[MOB_SPEED] -= 250;
md->next_walktime=tick;
}
sc_data[type].timer=add_timer( /* タイマー再設定 */