summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/mob.c3
-rw-r--r--src/map/skill.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 64aaf748f..9859de698 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2551,6 +2551,9 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
pc_setglobalreg(mvp_sd,"killerrid",sd?sd->bl.id:0);
npc_event(mvp_sd,md->npc_event,0);
}
+ else
+ npc_event_do(md->npc_event);
+
md->status.hp = 1;
} else if (mvp_sd) { //lordalfa
pc_setglobalreg(mvp_sd,"killedrid",md->class_);
diff --git a/src/map/skill.c b/src/map/skill.c
index db4605afb..3baafef54 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -296,8 +296,8 @@ int can_copy (struct map_session_data *sd, int skillid, struct block_list* bl)
return (sd->status.class_ == JOB_STALKER);
}
- //don't copy increase agi or blessing from someone who is inflicted with sc_changeundead
- if ((skillid == AL_INCAGI || skillid == AL_BLESSING) && sd->sc.data[SC_CHANGEUNDEAD])
+ //Added so plagarize can't copy agi/bless if you're undead since it damages you
+ if ((skillid == AL_INCAGI || skillid == AL_BLESSING))
return 0;
return 1;