Commit dc40ce98 authored by VanillaSalt's avatar VanillaSalt

fix

parent dbdbb671
...@@ -70,11 +70,8 @@ function c5043010.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,11 +70,8 @@ function c5043010.thop(e,tp,eg,ep,ev,re,r,rp)
end end
function c5043010.cfilter(c,tp,zone) function c5043010.cfilter(c,tp,zone)
local seq=c:GetPreviousSequence() local seq=c:GetPreviousSequence()
if c:GetPreviousControler()==tp then if c:GetPreviousControler()~=tp then seq=seq+16 end
return bit.band(zone,bit.lshift(1,seq))~=0 return c:IsPreviousLocation(LOCATION_MZONE) and bit.extract(zone,seq)~=0
else
return bit.band(bit.rshift(zone,16),bit.lshift(1,seq))~=0
end
end end
function c5043010.spcon(e,tp,eg,ep,ev,re,r,rp) function c5043010.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c5043010.cfilter,1,nil,tp,e:GetHandler():GetLinkedZone()) return eg:IsExists(c5043010.cfilter,1,nil,tp,e:GetHandler():GetLinkedZone())
......
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