summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-01-31 14:44:39 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-01-31 14:44:39 +0000
commit78dc57282718e52985aac7b569e705200b64bd80 (patch)
tree306247eac9ce53bf92ed82827bc44415abacab5b /src/map/skill.c
parentf4d04712b8383d5540f3178320af47de5486786b (diff)
downloadhercules-78dc57282718e52985aac7b569e705200b64bd80.tar.gz
hercules-78dc57282718e52985aac7b569e705200b64bd80.tar.bz2
hercules-78dc57282718e52985aac7b569e705200b64bd80.tar.xz
hercules-78dc57282718e52985aac7b569e705200b64bd80.zip
- Fixed being able to Encore skills you no longer have in your tree.
- Added no HP regen while Bleeding, -25% ATK and ASPD penalties as well. - Added VIT reduces duration of confusion. - Added MSC_SPAWN "onspawn" mob skill condition. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5136 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index c6d627582..2fdc406b0 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -8833,12 +8833,11 @@ int skill_use_id (struct map_session_data *sd, int target_id, int skill_num, int
break;
case BD_ENCORE: /* アンコ?ル */
- if (!sd->skillid_dance) { //前回使用した踊りがないとだめ
+ if (!sd->skillid_dance || pc_checkskill(sd, sd->skillid_dance) <= 0) { //Prevent using the dance skill if you no longer have the skill in your tree.
clif_skill_fail(sd,skill_num,0,0);
return 0;
- } else {
- sd->skillid_old = skill_num;
}
+ sd->skillid_old = skill_num;
break;
case GD_BATTLEORDER: