summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-02-03 14:58:02 -0200
committershennetsind <ind@henn.et>2013-02-03 14:58:02 -0200
commit4671a3910c923b473d2f4efb50daf0fb343a67a9 (patch)
tree46178301604f987e7d83e1f40ccb5f21fd082fc9 /src/map/unit.c
parent0dbbe22a43c72737349b5907088bd5c90d5c3d3a (diff)
downloadhercules-4671a3910c923b473d2f4efb50daf0fb343a67a9.tar.gz
hercules-4671a3910c923b473d2f4efb50daf0fb343a67a9.tar.bz2
hercules-4671a3910c923b473d2f4efb50daf0fb343a67a9.tar.xz
hercules-4671a3910c923b473d2f4efb50daf0fb343a67a9.zip
Fixed Bug #7044
Monsters in stone curse pre-stone state no longer are able to attack. http://hercules.ws/board/tracker/issue-7044-stone-curse/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index afb7cf19f..e901d3138 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -939,7 +939,7 @@ int unit_can_move(struct block_list *bl) {
if( sc->data[SC_ANKLE] && ( battle_config.skill_trap_type || !unit_is_walking(bl) ) ) // Ankle only stops you after you're done moving
return 0;
- if (sc->opt1 > 0 && sc->opt1 != OPT1_STONEWAIT && sc->opt1 != OPT1_BURNING && (sc->opt1 != OPT1_CRYSTALIZE && bl->type != BL_MOB))
+ if (sc->opt1 > 0 && sc->opt1 != OPT1_STONEWAIT && sc->opt1 != OPT1_BURNING && !(sc->opt1 == OPT1_CRYSTALIZE && bl->type == BL_MOB))
return 0;
if ((sc->option & OPTION_HIDE) && (!sd || pc_checkskill(sd, RG_TUNNELDRIVE) <= 0))