diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-07 21:31:01 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-07 21:31:01 +0000 |
commit | c7c7cf8234180753db71c3da91e6bb3a2dd44593 (patch) | |
tree | af403140ba6d42c05ea0f35c18a1c49d57590c8d /src/map/clif.c | |
parent | df3a4d166c38fb385c1d8817523a6e92af890279 (diff) | |
download | hercules-c7c7cf8234180753db71c3da91e6bb3a2dd44593.tar.gz hercules-c7c7cf8234180753db71c3da91e6bb3a2dd44593.tar.bz2 hercules-c7c7cf8234180753db71c3da91e6bb3a2dd44593.tar.xz hercules-c7c7cf8234180753db71c3da91e6bb3a2dd44593.zip |
- Added a check that forces self skills to cast on yourself in skill_use_id
- Skills with INF_SELF_SKILL + INF2_NO_TARGET_SELF are now "combo" skills in the sense they auto-select your attack target, and do not stop your attacking animation. Attackable time by default is adjusted by amotion.
- Gospel won't start taking effect until after 10 secs have passed.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5501 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index cba560a30..ccf647414 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -10033,6 +10033,11 @@ void clif_parse_UseSkillToId(int fd, struct map_session_data *sd) { if (skillnotok(skillnum, sd))
return;
+ if (sd->bl.id != target_id &&
+ !sd->state.skill_flag &&
+ skill_get_inf(skillnum)&INF_SELF_SKILL)
+ target_id = sd->bl.id; //What good is it to mess up the target in self skills? Wished I knew... [Skotlex]
+
if (sd->skilltimer != -1) {
if (skillnum != SA_CASTCANCEL)
return;
@@ -10093,7 +10098,6 @@ void clif_parse_UseSkillToId(int fd, struct map_session_data *sd) { }
}
-
if ((lv = pc_checkskill(sd, skillnum)) > 0) {
if (skilllv > lv)
skilllv = lv;
|