summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-03 11:57:50 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-03 11:57:50 +0000
commit10f272a1bfbb0ef56e84d7bdb5bd84282eccf735 (patch)
tree63b6933810ba66196b555c6f45a364e5b6fee243 /src/map/mob.c
parentfedbdb48e0fd0fc340884b15c3ba31f6168c85e8 (diff)
downloadhercules-10f272a1bfbb0ef56e84d7bdb5bd84282eccf735.tar.gz
hercules-10f272a1bfbb0ef56e84d7bdb5bd84282eccf735.tar.bz2
hercules-10f272a1bfbb0ef56e84d7bdb5bd84282eccf735.tar.xz
hercules-10f272a1bfbb0ef56e84d7bdb5bd84282eccf735.zip
* Updated Stone Curse, Soul Drain, Auto Berserk
* Fixed MVP exp being multiplied twice git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@442 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 ef67341f8..2f7d748a8 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2295,7 +2295,7 @@ int mob_damage(struct block_list *src,struct mob_data *md,int damage,int type)
mob_unlocktarget((struct mob_data *)src,tick);
/* ソウルドレイン */
- if(sd && (skill=pc_checkskill(sd,HW_SOULDRAIN))>0){
+ if(sd && sd->state.attack_type == BF_MAGIC && (skill=pc_checkskill(sd,HW_SOULDRAIN))>0){
clif_skill_nodamage(src,&md->bl,HW_SOULDRAIN,skill,1);
sp = (battle_get_lv(&md->bl))*(65+15*skill)/100;
if(sd->status.sp + sp > sd->status.max_sp)
@@ -2529,7 +2529,7 @@ int mob_damage(struct block_list *src,struct mob_data *md,int damage,int type)
int log_mvp[2] = {0};
int j;
int mexp;
- temp = ((double)mob_db[md->class].mexp * (double)battle_config.mvp_exp_rate * (9.+(double)count)/1000.);
+ temp = ((double)mob_db[md->class].mexp * (9.+(double)count)/10.); //[Gengar]
mexp = (temp > 2147483647.)? 0x7fffffff:(int)temp;
if(mexp < 1) mexp = 1;
clif_mvp_effect(mvp_sd); // エフェクト