summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcsnv <ctt@csnv.es>2015-01-18 23:33:35 +0100
committercsnv <ctt@csnv.es>2015-01-18 23:33:35 +0100
commitd23460aabcf335fad302fd37ce86ee8d8a76d16a (patch)
treede342427420886183c250657206c138caeb2713d /src
parenteb75dc692321954912d3befcdfb45d2f1898eaa4 (diff)
downloadhercules-d23460aabcf335fad302fd37ce86ee8d8a76d16a.tar.gz
hercules-d23460aabcf335fad302fd37ce86ee8d8a76d16a.tar.bz2
hercules-d23460aabcf335fad302fd37ce86ee8d8a76d16a.tar.xz
hercules-d23460aabcf335fad302fd37ce86ee8d8a76d16a.zip
Fixes direction in AOE skills
Diffstat (limited to 'src')
-rw-r--r--src/map/skill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 00c0caaa4..2d992d24f 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -10017,14 +10017,14 @@ int skill_castend_pos(int tid, int64 tick, int id, intptr_t data) {
if( sd && sd->skillitem != AL_WARP ) // Warp-Portal thru items will clear data in skill_castend_map. [Inkfish]
sd->skillitem = sd->skillitemlv = 0;
+ unit->setdir(src, map->calc_dir(src, ud->skillx, ud->skilly));
+
if (ud->skilltimer == INVALID_TIMER) {
if (md) md->skill_idx = -1;
else ud->skill_id = 0; //Non mobs can't clear this one as it is used for skill condition 'afterskill'
ud->skill_lv = ud->skillx = ud->skilly = 0;
}
- unit->setdir(src, map->calc_dir(src, ud->skillx, ud->skilly));
-
map->freeblock_unlock();
return 1;
} while(0);