diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/login_sql/login.c | 2 | ||||
-rw-r--r-- | src/map/battle.c | 1 | ||||
-rw-r--r-- | src/map/map.c | 2 | ||||
-rw-r--r-- | src/map/script.c | 4 | ||||
-rw-r--r-- | src/map/skill.c | 6 | ||||
-rw-r--r-- | src/map/unit.c | 1 |
6 files changed, 7 insertions, 9 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c index b895bbab8..73a32950b 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -1545,7 +1545,7 @@ int parse_login(int fd) default : error = "Unknown Error."; break; } - sprintf(tmpsql, "INSERT DELAYED INTO `%s`(`time`,`ip`,`user`,`rcode`,`log`) VALUES (NOW(), '%lu', '%s', '%d','login failed : %s')", loginlog_db, ntohl(ipl), t_uid, result, error); + sprintf(tmpsql, "INSERT DELAYED INTO `%s`(`time`,`ip`,`user`,`rcode`,`log`) VALUES (NOW(), '%lu', '%s', '%d','login failed : %s')", loginlog_db, (unsigned int)ntohl(ipl), t_uid, result, error); //query if(mysql_query(&mysql_handle, tmpsql)) { diff --git a/src/map/battle.c b/src/map/battle.c index 92297e67d..133b7eed7 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -2177,6 +2177,7 @@ struct Damage battle_calc_magic_attack( ad.blewcount = 0; //No knockback else ad.blewcount |= 0x10000; + case HW_GRAVITATION: ad.dmotion = 0; //No flinch animation. break; case WZ_STORMGUST: //Should knockback randomly. diff --git a/src/map/map.c b/src/map/map.c index f2dcd1a23..f16282bf4 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -479,6 +479,8 @@ int map_moveblock(struct block_list *bl, int x1, int y1, unsigned int tick) { status_change_end(bl, SC_BASILICA, -1); if (sc->data[SC_TATAMIGAESHI].timer != -1) status_change_end(bl, SC_TATAMIGAESHI, -1); + if (sc->data[SC_MAGICROD].timer != -1) + status_change_end(bl, SC_MAGICROD, -1); } } if (moveblock) map_delblock_sub(bl,0); diff --git a/src/map/script.c b/src/map/script.c index ffc0a10ad..5d7c3154d 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -9257,10 +9257,10 @@ BUILDIN_FUNC(setcastledata) case 25: gc->guardian[index-18].hp = value; if (gc->guardian[index-18].id) - { //Update this mob's HP. + { //Update this mob's HP. struct block_list *bl = map_id2bl(gc->guardian[index-18].id); if (!bl) - { //Wrong target? + { //Wrong target? gc->guardian[index-18].id = 0; break; } diff --git a/src/map/skill.c b/src/map/skill.c index 861c33e87..bc00db58c 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -812,7 +812,6 @@ int skill_calc_heal (struct block_list *bl, int skill_lv) if(bl->type == BL_HOM && (skill = merc_hom_checkskill(((TBL_HOM*)bl), HLIF_BRAIN)) > 0) heal += heal * skill * 2 / 100; - return heal; } @@ -5711,10 +5710,7 @@ int skill_castend_id (int tid, unsigned int tick, int id, int data) if (ud->walktimer != -1 && ud->skillid != TK_RUN) unit_stop_walking(src,1); - if (ud->skillid == SA_MAGICROD) - ud->canact_tick = tick; - else - ud->canact_tick = tick + skill_delayfix(src, ud->skillid, ud->skilllv); + ud->canact_tick = tick + skill_delayfix(src, ud->skillid, ud->skilllv); if (skill_get_state(ud->skillid) != ST_MOVE_ENABLE) unit_set_walkdelay(src, tick, battle_config.default_skill_delay+skill_get_walkdelay(ud->skillid, ud->skilllv), 1); diff --git a/src/map/unit.c b/src/map/unit.c index e784c68ce..9a48dc488 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -966,7 +966,6 @@ int unit_skilluse_id2(struct block_list *src, int target_id, int skill_num, int if (sc && sc->data[SC_RUN].timer != -1) casttime = 0; break; - case SA_MAGICROD: case SA_SPELLBREAKER: temp =1; break; |