diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-02-19 08:04:33 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-02-19 08:04:33 +0000 |
commit | 48f8a39dbac7dd47104933a5c7cab30412987ecc (patch) | |
tree | d277b83b8b04a77b61bf2884f8d46d308875832e /src/map/skill.c | |
parent | 2b19bc81ba8005d28810b3180da9c6d0a58b01c8 (diff) | |
download | hercules-48f8a39dbac7dd47104933a5c7cab30412987ecc.tar.gz hercules-48f8a39dbac7dd47104933a5c7cab30412987ecc.tar.bz2 hercules-48f8a39dbac7dd47104933a5c7cab30412987ecc.tar.xz hercules-48f8a39dbac7dd47104933a5c7cab30412987ecc.zip |
* Added bSubSize, bHPGainValue, and bDamageWhenUnequip
* Updated bSPDrainValue/Rate
* Set baby class players' size to 0(small)
* Fixed item_db2.txt reading printing wrong number of entries read
* Fixed @allskill not giving the newer stalker, whitesmith and creator skills
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1139 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 4bdf4ae2a..03704839f 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -1588,7 +1588,10 @@ int skill_attack( int attack_type, struct block_list* src, struct block_list *ds if(sd->sp_drain_rate_ > 0 && sp < 1) sp = 1; else if(sd->sp_drain_rate_ < 0 && sp > -1) sp = -1; } - if(hp || sp) pc_heal(sd,hp,sp); + if(hp || sp) + pc_heal(sd,hp,sp); + if (sd->sp_drain_type && bl->type == BL_PC) + battle_heal(NULL,bl,0,-sp,0); } if((skillid || flag) && rdamage > 0) |