Skip to content
Snippets Groups Projects
Commit b75c5b01 authored by dg's avatar dg
Browse files

Rampaging into a wall does not anger you that much

git-svn-id: http://svn.net-core.org/repos/t-engine4@6049 51575b47-30f0-44d4-a5cc-537603b46e54
parent b581efde
No related branches found
No related tags found
No related merge requests found
......@@ -1038,7 +1038,7 @@ function _M:move(x, y, force)
t.do_haste_double(self, t, ox, oy)
end
if moved and not force and self:hasEffect(self.EFF_RAMPAGE) then
if moved and not force and ox and oy and (ox ~= self.x or oy ~= self.y) and self:hasEffect(self.EFF_RAMPAGE) then
local eff = self:hasEffect(self.EFF_RAMPAGE)
if not eff.moved and eff.actualDuration < eff.maxDuration then
game.logPlayer(self, "#F53CBE#Your movements fuel your rampage! (+1 duration)")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment