Commit 1719f4b8 authored by mercury233's avatar mercury233 Committed by GitHub

fix Labrynth (#1866)

parent d3c7bde0
......@@ -47,7 +47,8 @@ function c1225009.cfilter(c)
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsReason(REASON_EFFECT)
end
function c1225009.drcon(e,tp,eg,ep,ev,re,r,rp)
return re and rp==tp and re:GetHandler():GetType()==TYPE_TRAP and eg:IsExists(c1225009.cfilter,1,nil)
return re and rp==tp and re:IsActiveType(TYPE_TRAP) and re:GetHandler():GetOriginalType()==TYPE_TRAP
and eg:IsExists(c1225009.cfilter,1,nil)
end
function c1225009.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
......
......@@ -74,7 +74,8 @@ function c2347656.cfilter(c)
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsReason(REASON_EFFECT)
end
function c2347656.descon(e,tp,eg,ep,ev,re,r,rp)
return re and rp==tp and re:GetHandler():GetType()==TYPE_TRAP and eg:IsExists(c2347656.cfilter,1,nil)
return re and rp==tp and re:IsActiveType(TYPE_TRAP) and re:GetHandler():GetOriginalType()==TYPE_TRAP
and eg:IsExists(c2347656.cfilter,1,nil)
end
function c2347656.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD+LOCATION_HAND)>0 end
......
......@@ -49,7 +49,7 @@ function c37629703.cfilter(c)
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsReason(REASON_EFFECT)
end
function c37629703.thcon(e,tp,eg,ep,ev,re,r,rp)
return re and rp==tp and re:GetHandler():GetType()==TYPE_TRAP
return re and rp==tp and re:IsActiveType(TYPE_TRAP) and re:GetHandler():GetOriginalType()==TYPE_TRAP
and eg:IsExists(c37629703.cfilter,1,nil) and not eg:IsContains(e:GetHandler())
end
function c37629703.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -80,7 +80,7 @@ function c5380979.cfilter(c)
end
function c5380979.setcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c5380979.cfilter,1,nil) and not eg:IsContains(e:GetHandler()) and rp==tp
and re:IsActiveType(TYPE_TRAP) and re:GetHandler():GetType()==TYPE_TRAP and aux.exccon(e)
and re:IsActiveType(TYPE_TRAP) and re:GetHandler():GetOriginalType()==TYPE_TRAP and aux.exccon(e)
end
function c5380979.settg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsSSetable() end
......
......@@ -53,7 +53,7 @@ function c74018812.cfilter(c)
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsReason(REASON_EFFECT)
end
function c74018812.spcon(e,tp,eg,ep,ev,re,r,rp)
return re and rp==tp and re:GetHandler():GetType()==TYPE_TRAP
return re and rp==tp and re:IsActiveType(TYPE_TRAP) and re:GetHandler():GetOriginalType()==TYPE_TRAP
and eg:IsExists(c74018812.cfilter,1,nil) and not eg:IsContains(e:GetHandler())
end
function c74018812.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -55,7 +55,8 @@ function c75730490.cfilter(c)
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsReason(REASON_EFFECT)
end
function c75730490.drcon(e,tp,eg,ep,ev,re,r,rp)
return re and rp==tp and re:GetHandler():GetType()==TYPE_TRAP and eg:IsExists(c75730490.cfilter,1,nil)
return re and rp==tp and re:IsActiveType(TYPE_TRAP) and re:GetHandler():GetOriginalType()==TYPE_TRAP
and eg:IsExists(c75730490.cfilter,1,nil)
end
function c75730490.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
......
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