diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua index 610160524d783d946f216f47b917c859195963a2..5bfc1612d3d4af706fca8358077790a27a81d145 100644 --- a/game/modules/tome/class/Actor.lua +++ b/game/modules/tome/class/Actor.lua @@ -1326,7 +1326,7 @@ function _M:move(x, y, force) if self:attr("lightning_speed") or self:attr("step_up") or self:attr("wild_speed") then blur = 3 end if self:hasEffect(self.EFF_CELERITY) then local eff = self:hasEffect(self.EFF_CELERITY) blur = eff.charges end self:setMoveAnim(ox, oy, config.settings.tome.smooth_move, blur, 8, config.settings.tome.twitch_move and 0.15 or 0) - if self.x < ox then self:MOflipX(self:isTileFlipped()) elseif self.x > ox then self:MOflipX(not self:isTileFlipped()) end + if Map.tiles and Map.tiles.use_images then if self.x < ox then self:MOflipX(self:isTileFlipped()) elseif self.x > ox then self:MOflipX(not self:isTileFlipped()) end end end if moved and not force and ox and oy and (ox ~= self.x or oy ~= self.y) and self:hasEffect(self.EFF_RAMPAGE) then diff --git a/game/modules/tome/class/interface/Combat.lua b/game/modules/tome/class/interface/Combat.lua index 1d39f70fb9919d2d5f74961e141297d14c731df6..82f5721415f1b9f9db7ea6189a7ea84bc659aa08 100644 --- a/game/modules/tome/class/interface/Combat.lua +++ b/game/modules/tome/class/interface/Combat.lua @@ -1043,7 +1043,7 @@ function _M:attackTargetWith(target, weapon, damtype, mult, force_dam) -- Visual feedback if hitted then game.level.map:particleEmitter(target.x, target.y, 1, "melee_attack", {color=target.blood_color}) end - if self.x and target.x then if target.x < self.x then self:MOflipX(self:isTileFlipped()) elseif target.x > self.x then self:MOflipX(not self:isTileFlipped()) end end + if Map.tiles and Map.tiles.use_images then if self.x and target.x then if target.x < self.x then self:MOflipX(self:isTileFlipped()) elseif target.x > self.x then self:MOflipX(not self:isTileFlipped()) end end end self.turn_procs.weapon_type = nil self.__global_accuracy_damage_bonus = nil