summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-19 16:46:27 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-19 16:46:27 +0300
commit9291a21bcbb974db25f1159608edf0e8c816eb02 (patch)
treec6b90a2b04721b238949f9bd32778cb5d45f9881
parent8adcdbb1a5b99cf3bd830382c2c9dbfcdecf2659 (diff)
downloadevol-hercules-9291a21bcbb974db25f1159608edf0e8c816eb02.tar.gz
evol-hercules-9291a21bcbb974db25f1159608edf0e8c816eb02.tar.bz2
evol-hercules-9291a21bcbb974db25f1159608edf0e8c816eb02.tar.xz
evol-hercules-9291a21bcbb974db25f1159608edf0e8c816eb02.zip
Add check in unit_move for new moving flag.
-rw-r--r--src/emap/unit.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emap/unit.c b/src/emap/unit.c
index 21f87b8..5d8211a 100644
--- a/src/emap/unit.c
+++ b/src/emap/unit.c
@@ -46,11 +46,11 @@ int eunit_can_move_pre(struct block_list **blPtr)
return 0;
}
- if (ud->skilltimer != INVALID_TIMER
- && ud->skill_id != LG_EXEEDBREAK
- && (!sd
- || !pc->checkskill(sd, SA_FREECAST)
- || skill->get_inf2(ud->skill_id)&INF2_GUILD_SKILL))
+ if (ud->skilltimer != INVALID_TIMER &&
+ ud->skill_id != LG_EXEEDBREAK &&
+ (!sd ||
+ (!pc->checkskill(sd, SA_FREECAST) &&
+ (skill->get_inf2(ud->skill_id) & (INF2_GUILD_SKILL | INF2_FREE_CAST_REDUCED | INF2_FREE_CAST_NORMAL)) == 0)))
{
hookStop();
return 0; // prevent moving while casting