diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-02-08 15:39:00 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-02-08 15:39:00 +0000 |
commit | 1847024eda6075c5637cef48bc14eb3e4958bd34 (patch) | |
tree | 4232cc9165967c31eecd991de56e290e3677457d /src | |
parent | 67157a6e028df10eec830f1cecdc6c395d3f48cc (diff) | |
download | hercules-1847024eda6075c5637cef48bc14eb3e4958bd34.tar.gz hercules-1847024eda6075c5637cef48bc14eb3e4958bd34.tar.bz2 hercules-1847024eda6075c5637cef48bc14eb3e4958bd34.tar.xz hercules-1847024eda6075c5637cef48bc14eb3e4958bd34.zip |
- 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
Diffstat (limited to 'src')
-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 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)
|