summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/char_sql/int_homun.c2
-rw-r--r--src/map/battle.c4
-rw-r--r--src/map/mob.c3
-rw-r--r--src/map/script.c4
-rw-r--r--src/map/status.c2
5 files changed, 7 insertions, 8 deletions
diff --git a/src/char_sql/int_homun.c b/src/char_sql/int_homun.c
index 9f5fd24d4..29d8a561b 100644
--- a/src/char_sql/int_homun.c
+++ b/src/char_sql/int_homun.c
@@ -232,7 +232,7 @@ int mapif_delete_homunculus(int fd)
return mapif_homunculus_deleted(fd, 1);
}
-int mapif_rename_homun_ack(int fd, int account_id, int char_id, int flag, char *name){
+int mapif_rename_homun_ack(int fd, int account_id, int char_id, unsigned char flag, char *name){
WFIFOW(fd, 0) =0x3894;
WFIFOL(fd, 2) =account_id;
WFIFOL(fd, 6) =char_id;
diff --git a/src/map/battle.c b/src/map/battle.c
index 95a4ac49f..0469fea0f 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -649,10 +649,6 @@ int battle_addmastery(struct map_session_data *sd,struct block_list *target,int
if((skill = pc_checkskill(sd,AS_KATAR)) > 0)
damage += (skill * 3);
break;
- case W_HUUMA:
- if((skill = pc_checkskill(sd,NJ_TOBIDOUGU)) >0)
- damage += (skill * 3);
- break;
}
return damage;
diff --git a/src/map/mob.c b/src/map/mob.c
index e8d2a5b81..6f73433c7 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2132,7 +2132,8 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
if(md->nd)
mob_script_callback(md, src, CALLBACK_DEAD);
- else if(md->npc_event[0]){
+ else
+ if(md->npc_event[0]){
md->status.hp = 0; //So that npc_event invoked functions KNOW that I am dead.
if(src)
switch (src->type) {
diff --git a/src/map/script.c b/src/map/script.c
index eef5cac23..50c665086 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -4574,7 +4574,8 @@ int buildin_jobchange(struct script_state *st)
if( st->end>st->start+3 )
upper=conv_num(st,& (st->stack->stack_data[st->start+3]));
- if ((job >= 0 && job < MAX_PC_CLASS)){
+ if ((job >= 0 && job < MAX_PC_CLASS))
+ {
pc_jobchange(script_rid2sd(st),job, upper);
if(use_irc && irc_announce_jobchange_flag)
irc_announce_jobchange(script_rid2sd(st));
@@ -7140,7 +7141,6 @@ int buildin_initnpctimer(struct script_state *st)
else
nd=(struct npc_data *)map_id2bl(st->oid);
- //nd->u.scr.rid = st->rid; //NO, use npcattachtimer if you want a player-attached timer! [Skotlex]
npc_settimerevent_tick(nd,0);
npc_timerevent_start(nd, st->rid);
return 0;
diff --git a/src/map/status.c b/src/map/status.c
index 97c3cc6e3..bc30ada23 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -5043,6 +5043,8 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
if (map_flag_gvg(bl->m)) val4 *= 5;
break;
case SC_CLOAKING:
+ if (!sd) //Monsters should be able to walk no penalties. [Skotlex]
+ val1 = 10;
val2 = tick>0?tick:60000; //SP consumption rate.
val3 = 0;
if (sd && (sd->class_&MAPID_UPPERMASK) == MAPID_ASSASSIN &&