summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-05 20:14:13 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-05 20:14:13 +0000
commit89ad9c0c16bb729b7215aa8ded3fab0788cee242 (patch)
tree612d76c8ac098bdfc4126879e566fed4dff49bee /src/map/battle.c
parentbabf9653c5dd6ec37bc859665d3becf114962afc (diff)
downloadhercules-89ad9c0c16bb729b7215aa8ded3fab0788cee242.tar.gz
hercules-89ad9c0c16bb729b7215aa8ded3fab0788cee242.tar.bz2
hercules-89ad9c0c16bb729b7215aa8ded3fab0788cee242.tar.xz
hercules-89ad9c0c16bb729b7215aa8ded3fab0788cee242.zip
- Fixed Kaupe always triggering when the one who was under Kaupe was a player rather than the one attacking...
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6492 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 0bb50eb76..c773cc5bf 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -463,7 +463,7 @@ int battle_calc_damage(struct block_list *src,struct block_list *bl,int damage,i
if(sc->data[SC_KAUPE].timer != -1 &&
rand()%100 < sc->data[SC_KAUPE].val2 &&
- (bl->type == BL_PC || !skill_num))
+ (src->type == BL_PC || !skill_num))
{ //Kaupe only blocks all skills of players.
clif_skill_nodamage(bl,bl,SL_KAUPE,1,1);
if (--sc->data[SC_KAUPE].val3 <= 0) //We make it work like Safety Wall, even though it only blocks 1 time.