summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorLeo Pflug <skyleo@skyleo.de>2019-10-30 17:34:19 +0100
committerHaru <haru@dotalux.com>2020-03-08 20:59:35 +0100
commit729d2f274dafcf979157e388a35b62b5e9887f2e (patch)
treed3180896e716312c724321be661f53e78f7e8a94 /src/map/skill.c
parent9087aa77f925f5eeee809467839b526795b07170 (diff)
downloadhercules-729d2f274dafcf979157e388a35b62b5e9887f2e.tar.gz
hercules-729d2f274dafcf979157e388a35b62b5e9887f2e.tar.bz2
hercules-729d2f274dafcf979157e388a35b62b5e9887f2e.tar.xz
hercules-729d2f274dafcf979157e388a35b62b5e9887f2e.zip
Undo removal of attack->dir_unknown
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 693cbfe2c..d0affb248 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -3320,7 +3320,7 @@ static int skill_attack(int attack_type, struct block_list *src, struct block_li
dir = UNIT_DIR_EAST; // Official servers push target to the West
break;
default:
- dir = UNIT_DIR_UNDEFINED;
+ dir = skill->attack_dir_unknown(&attack_type, src, dsrc, bl, &skill_id, &skill_lv, &tick, &flag);
break;
}
@@ -3498,6 +3498,11 @@ static int skill_attack_copy_unknown(int *attack_type, struct block_list *src, s
return *skill_id;
}
+static int skill_attack_dir_unknown(int *attack_type, struct block_list *src, struct block_list *dsrc, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag)
+{
+ return UNIT_DIR_UNDEFINED;
+}
+
static void skill_attack_blow_unknown(int *attack_type, struct block_list *src, struct block_list *dsrc, struct block_list *bl,
uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag, int *type,
struct Damage *dmg, int64 *damage, enum unit_dir *dir)
@@ -21750,6 +21755,7 @@ void skill_defaults(void)
skill->attack_combo2_unknown = skill_attack_combo2_unknown;
skill->attack_display_unknown = skill_attack_display_unknown;
skill->attack_copy_unknown = skill_attack_copy_unknown;
+ skill->attack_dir_unknown = skill_attack_dir_unknown;
skill->attack_blow_unknown = skill_attack_blow_unknown;
skill->attack_post_unknown = skill_attack_post_unknown;
skill->timerskill_dead_unknown = skill_timerskill_dead_unknown;