From 1847024eda6075c5637cef48bc14eb3e4958bd34 Mon Sep 17 00:00:00 2001 From: skotlex Date: Wed, 8 Feb 2006 15:39:00 +0000 Subject: - Modified exp2.txt to use the default official levels instead of 1000 - Corrected exp2.txt's job lines for novice/baby novice. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5225 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/battle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/battle.c b/src/map/battle.c index 9952ee076..8e32d6e7d 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3170,7 +3170,7 @@ int battle_weapon_attack( struct block_list *src,struct block_list *target, if (tsd && sd->sp_drain_type) pc_heal(tsd, 0, -sp); - if (target && target->type == BL_PC && rand()%1000 < sd->sp_vanish_rate) + if (tsd && rand()%1000 < sd->sp_vanish_rate) { sp = tsd->status.sp * sd->sp_vanish_per/100; if (sp > 0) -- cgit v1.2.3-70-g09d2