From c7131cd6818c762a8deb740db40bf1b579f5abee Mon Sep 17 00:00:00 2001 From: gumi Date: Sat, 17 Feb 2018 12:16:54 -0500 Subject: fix player facing the wrong direction on magic attacks --- src/map/pc.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/map/pc.cpp b/src/map/pc.cpp index 3784566..e4c3907 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -2653,6 +2653,12 @@ void pc_attack_timer(TimerData *, tick_t tick, BlockId id) if (sd->attack_spell_override) // [Fate] If we have an active attack spell, use that { + if (battle_config.player_attack_direction_change) + sd->dir = sd->head_dir = map_calc_dir(sd, bl->bl_x, bl->bl_y); + + if (sd->walktimer) + pc_stop_walking(sd, 1); + // call_spell_event_script argrec_t arg[1] = { -- cgit v1.2.3-60-g2f50