summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-08-14 00:05:13 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-08-14 00:05:13 +0000
commit5a1b01d69d45b054aef505abdb693c8fc3fdd213 (patch)
treea5c56c6e512a01c64d731c21f41d6ee6f76d6e2e /src/map/pc.c
parentb833ae56df9190c62169bd321a1ae0ee93f1ce7b (diff)
downloadhercules-5a1b01d69d45b054aef505abdb693c8fc3fdd213.tar.gz
hercules-5a1b01d69d45b054aef505abdb693c8fc3fdd213.tar.bz2
hercules-5a1b01d69d45b054aef505abdb693c8fc3fdd213.tar.xz
hercules-5a1b01d69d45b054aef505abdb693c8fc3fdd213.zip
- Modified map_foreachinrange so that you can also specify the max length of the path to use. The max_count field in the skill_db is used to specify this range for path-type skills (Sharpshooting, Kamaitachi and the NPC Breath skills.
- Implemented the 'new' NPC skills described here: http://ro.doddlercon.com/wiki/index.php?title=Monster_Skills . It is mostly complete, but the new status changes (slow cast, critical wounds, etc) don't have any visual effects yet (icon or opt changes? I don't know if they should have). Also I could not find the unit_id for Evil Land, so it looks just like Sanctuary for now. Apart from those, the only skills which I couldn't get to display properly are the Breath skills (with the exception of Fire Breath). - skill_calc_heal now takes the target as argument to properly support Critical Wounds - battle_calc_return_damage now takes a flag to know if the attack was direct or not, needed since Magic Mirror also reflects indirect attacks. - cleaned up the 'description' field in skill.c, added skill_get_desc to it - Removed 'splash' support from Lex Divina as it is no longer needed. - Modified the way Sight/Sightblaster work so that the skill id is no longer guessed (needed to properly acquire the splash range for Wide Sight) - Corrected gtb_sc_immunity setting not taking effect if your block value was the same (that is, if the config said 30%, then you would only get status change immunity at 31%, nor 30%) - Uncommented the 'new' npc skills from mob_skill_db as they are implemented now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11000 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 0f69486a9..098c0ca94 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5403,6 +5403,13 @@ int pc_itemheal(struct map_session_data *sd,int itemid, int hp,int sp)
if(bonus != 100)
sp = sp * bonus / 100;
}
+
+ if (sd->sc.count && sd->sc.data[SC_CRITICALWOUND].timer!=-1)
+ {
+ hp -= hp * sd->sc.data[SC_CRITICALWOUND].val2 / 100;
+ sp -= sp * sd->sc.data[SC_CRITICALWOUND].val2 / 100;
+ }
+
return status_heal(&sd->bl, hp, sp, 1);
}