Commit 737ff97d authored by POLYMER's avatar POLYMER

fix

parent 4f86648c
...@@ -165,8 +165,8 @@ function cm.disable(e,c) ...@@ -165,8 +165,8 @@ function cm.disable(e,c)
if loc==LOCATION_MZONE then x=0x10000 end if loc==LOCATION_MZONE then x=0x10000 end
if loc==LOCATION_SZONE then x=0x1000000 end if loc==LOCATION_SZONE then x=0x1000000 end
local seq=c:GetSequence() local seq=c:GetSequence()
if seq<=4 then seq=4-seq end --if seq<=4 then seq=4-seq end
if seq==5 then seq=6 elseif seq==6 then seq=5 end --if seq==5 then seq=6 elseif seq==6 then seq=5 end
return c:IsFaceup() and c:IsLocation(loc) and (bit.band(zone,(1<<seq)*x)~=0 or (loc==LOCATION_FZONE and c:IsLocation(LOCATION_FZONE))) return c:IsFaceup() and c:IsLocation(loc) and (bit.band(zone,(1<<seq)*x)~=0 or (loc==LOCATION_FZONE and c:IsLocation(LOCATION_FZONE)))
end end
function cm.dis2op(e,tp,eg,ep,ev,re,r,rp) function cm.dis2op(e,tp,eg,ep,ev,re,r,rp)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment