diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-15 01:49:11 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-15 01:49:11 +0000 |
commit | e0ca7e477f47d99ce03be3a580da22133fe70f51 (patch) | |
tree | 93f8e5d9275dfd4581ca2348ec325867f766e76b /src/map | |
parent | b917b7d1dcfe3b6af36a5e1a4e8dd5017c998970 (diff) | |
download | hercules-e0ca7e477f47d99ce03be3a580da22133fe70f51.tar.gz hercules-e0ca7e477f47d99ce03be3a580da22133fe70f51.tar.bz2 hercules-e0ca7e477f47d99ce03be3a580da22133fe70f51.tar.xz hercules-e0ca7e477f47d99ce03be3a580da22133fe70f51.zip |
Fixed Divine Protection working against players (bugreport:410)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11735 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/battle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 1da04dc0e..72580f03b 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -1703,7 +1703,7 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo vit_def = def2/2 + (vit_def>0?rand()%vit_def:0); if((battle_check_undead(sstatus->race,sstatus->def_ele) || sstatus->race==RC_DEMON) && - (skill=pc_checkskill(tsd,AL_DP)) >0) + src->type == BL_MOB && (skill=pc_checkskill(tsd,AL_DP)) > 0) vit_def += skill*(int)(3 +(tsd->status.base_level+1)*0.04); // submitted by orn } else { //Mob-Pet vit-eq //VIT + rnd(0,[VIT/20]^2-1) |