diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-24 21:46:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-24 21:46:27 +0300 |
commit | e2fec6a64a403df523d64540f70c73b99fbf491c (patch) | |
tree | 34ee4d272252990071bd84cff303b956e4b57c21 /src/map/unit.c | |
parent | cf9c4ca35fefcf392269179785371b679689364c (diff) | |
download | plugin-e2fec6a64a403df523d64540f70c73b99fbf491c.tar.gz plugin-e2fec6a64a403df523d64540f70c73b99fbf491c.tar.bz2 plugin-e2fec6a64a403df523d64540f70c73b99fbf491c.tar.xz plugin-e2fec6a64a403df523d64540f70c73b99fbf491c.zip |
map: add missing checks.
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 01dedc2..5a1ca83 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -26,7 +26,6 @@ int eunit_can_move(struct block_list *bl) struct unit_data *ud; struct status_change *sc; - if (!bl) { hookStop(); @@ -136,9 +135,9 @@ int eunit_can_move(struct block_list *bl) if(md && ((md->status.mode&MD_BOSS && battle->bc->boss_icewall_walk_block == 1 && map->getcell(bl->m,bl->x,bl->y,CELL_CHKICEWALL)) || (!(md->status.mode&MD_BOSS) && battle->bc->mob_icewall_walk_block == 1 && map->getcell(bl->m,bl->x,bl->y,CELL_CHKICEWALL)))) { - md->walktoxy_fail_count = 1; //Make sure rudeattacked skills are invoked + md->walktoxy_fail_count = 1; //Make sure rudeattacked skills are invoked hookStop(); - return 0; + return 0; } } |