From 827726c72c29c80c64a69fb6f866c9275b2d8573 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 24 Aug 2006 15:25:50 +0000 Subject: - 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 --- src/map/skill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/skill.c') 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) { -- cgit v1.2.3-60-g2f50