summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-06 00:03:16 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-06 00:03:16 +0000
commitb23e86c84c2532d5900422295c5b352b99a13b30 (patch)
tree5be95d7331b200d6cf512b8da4a81bd3843c2a85 /src/map/mob.c
parent5eb3f45f49a8437e82fa27a52c70c0a611acaeb3 (diff)
downloadhercules-b23e86c84c2532d5900422295c5b352b99a13b30.tar.gz
hercules-b23e86c84c2532d5900422295c5b352b99a13b30.tar.bz2
hercules-b23e86c84c2532d5900422295c5b352b99a13b30.tar.xz
hercules-b23e86c84c2532d5900422295c5b352b99a13b30.zip
- Fixed @lvup, #lvup not doing a stat reset and lowering your status points if you had 0 status points at that time.
- Fixed MvP exp and item rewards being given even when the mob_dead flag specifies you should not receive exp or items. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9795 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index bba0505c6..7434aae3a 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2058,7 +2058,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
double exp;
//mapflag: noexp check [Lorky]
- if (map[m].flag.nobaseexp)
+ if (map[m].flag.nobaseexp || !(type&2))
exp =1;
else {
exp = md->db->mexp;
@@ -2075,7 +2075,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
clif_mvp_exp(mvp_sd,mexp);
pc_gainexp(mvp_sd, &md->bl, mexp,0);
log_mvp[1] = mexp;
- if(!map[m].flag.nomvploot)
+ if(!map[m].flag.nomvploot && !(type&1))
for(j=0;j<3;j++){
i = rand() % 3;