* Fixed a bug where the "OnMyMobDead" event wouldn't trigger if the mob was killed and never attacked. (bugreport: 1725)
* Reworded a comment in can_copy to make more sense. git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12870 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
0860dc9583
commit
e25af12edf
@ -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);
|
pc_setglobalreg(mvp_sd,"killerrid",sd?sd->bl.id:0);
|
||||||
npc_event(mvp_sd,md->npc_event,0);
|
npc_event(mvp_sd,md->npc_event,0);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
npc_event_do(md->npc_event);
|
||||||
|
|
||||||
md->status.hp = 1;
|
md->status.hp = 1;
|
||||||
} else if (mvp_sd) { //lordalfa
|
} else if (mvp_sd) { //lordalfa
|
||||||
pc_setglobalreg(mvp_sd,"killedrid",md->class_);
|
pc_setglobalreg(mvp_sd,"killedrid",md->class_);
|
||||||
|
@ -296,8 +296,8 @@ int can_copy (struct map_session_data *sd, int skillid, struct block_list* bl)
|
|||||||
return (sd->status.class_ == JOB_STALKER);
|
return (sd->status.class_ == JOB_STALKER);
|
||||||
}
|
}
|
||||||
|
|
||||||
//don't copy increase agi or blessing from someone who is inflicted with 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) && sd->sc.data[SC_CHANGEUNDEAD])
|
if ((skillid == AL_INCAGI || skillid == AL_BLESSING))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user