summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-08 23:28:03 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-08 23:28:03 +0000
commitd6f412e47f44df59adb315665bae64c22cf64bb0 (patch)
tree138f661a75a45ff55c5e2923347eee73844aa8de /src/map/skill.c
parentf673ec583e417b7df360edd69baf51add58aa36b (diff)
downloadhercules-d6f412e47f44df59adb315665bae64c22cf64bb0.tar.gz
hercules-d6f412e47f44df59adb315665bae64c22cf64bb0.tar.bz2
hercules-d6f412e47f44df59adb315665bae64c22cf64bb0.tar.xz
hercules-d6f412e47f44df59adb315665bae64c22cf64bb0.zip
- Removed the fixpos packet sending when damaged. Aegis sends no such packet.
- Fixed warp-portal being unusable if it was invoked through an item script. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6522 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 534b5f305..67bad2ee1 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -6243,8 +6243,9 @@ int skill_castend_map( struct map_session_data *sd,int skill_num, const char *ma
return 0;
}
}
-
- lv = sd->skillitem==skill_num?sd->menuskill_lv:pc_checkskill(sd,skill_num);
+
+ //When it's an item-used warp-portal, the skill-lv used is lost.. assume max level.
+ lv = sd->skillitem==skill_num?skill_get_max(skill_num):pc_checkskill(sd,skill_num);
wx = sd->menuskill_lv>>16;
wy = sd->menuskill_lv&0xffff;