summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-24 15:25:50 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-24 15:25:50 +0000
commit827726c72c29c80c64a69fb6f866c9275b2d8573 (patch)
treed47427ad140c703a73574d8b97ea9f12927a1ab4 /src/map/skill.c
parentcb21fbb0fe268d098a74469895d8162f1c3c8c2b (diff)
downloadhercules-827726c72c29c80c64a69fb6f866c9275b2d8573.tar.gz
hercules-827726c72c29c80c64a69fb6f866c9275b2d8573.tar.bz2
hercules-827726c72c29c80c64a69fb6f866c9275b2d8573.tar.xz
hercules-827726c72c29c80c64a69fb6f866c9275b2d8573.zip
- Reverted the previous change, changed the pet capture code to try to capture a mob based on their view class rather than actual class.
- Changed various instances of md->db->lv for md->level, since the later is the actual mob level. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8471 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 905e2c1fb..9a52c99dd 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -3929,7 +3929,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
pc_delspiritball(dstsd,dstsd->spiritball,0);
} else if (dstmd && !(tstatus->mode&MD_BOSS) && rand() % 100 < 20)
{ // check if target is a monster and not a Boss, for the 20% chance to absorb 2 SP per monster's level [Reddozen]
- i = 2 * dstmd->db->lv;
+ i = 2 * dstmd->level;
mob_target(dstmd,src,0);
}
if (i) {