summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme G. Menaldo <guilherme.menaldo@outlook.com>2018-10-02 01:05:19 -0300
committerGuilherme G. Menaldo <guilherme.menaldo@outlook.com>2020-02-08 16:39:38 -0300
commitd38c436a04b8ad65ece34272dfb49622e6cdd8b5 (patch)
tree1dd9ed7c9c334164d0e62d3aa49dd25a80c558cd
parent20e25a820de38ced1e1dfa8376d7c5434f100be8 (diff)
downloadhercules-d38c436a04b8ad65ece34272dfb49622e6cdd8b5.tar.gz
hercules-d38c436a04b8ad65ece34272dfb49622e6cdd8b5.tar.bz2
hercules-d38c436a04b8ad65ece34272dfb49622e6cdd8b5.tar.xz
hercules-d38c436a04b8ad65ece34272dfb49622e6cdd8b5.zip
Makes Asura Strike caster not change look direction at the end of the skill
-rw-r--r--src/map/skill.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index c623cb8d9..867555aa6 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -5613,6 +5613,8 @@ static int skill_castend_id(int tid, int64 tick, int id, intptr_t data)
// Use a do so that you can break out of it when the skill fails.
do {
+ bool is_asura = (ud->skill_id == MO_EXTREMITYFIST);
+
if(!target || target->prev==NULL) break;
if(src->m != target->m || status->isdead(src)) break;
@@ -5845,7 +5847,8 @@ static int skill_castend_id(int tid, int64 tick, int id, intptr_t data)
ud->skill_lv = ud->skilltarget = 0;
}
- if (src->id != target->id)
+ // Asura Strike caster doesn't look to their target in the end
+ if (src->id != target->id && !is_asura)
unit->setdir(src, map->calc_dir(src, target->x, target->y));
map->freeblock_unlock();