Commit e84d99cb authored by salix5's avatar salix5
parent 802a50fa
...@@ -58,10 +58,10 @@ function c23931679.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,10 +58,10 @@ function c23931679.condition(e,tp,eg,ep,ev,re,r,rp)
end end
function c23931679.sumlimit(e,c,sump,sumtype,sumpos,targetp) function c23931679.sumlimit(e,c,sump,sumtype,sumpos,targetp)
if sumpos and bit.band(sumpos,POS_FACEDOWN)>0 then return false end if sumpos and bit.band(sumpos,POS_FACEDOWN)>0 then return false end
return not c:IsAttribute(ATTRIBUTE_WATER) and c23931679[targetp or sump]==1 return c:IsAttribute(ATTRIBUTE_ALL-ATTRIBUTE_WATER) and c23931679[targetp or sump]==1
end end
function c23931679.wtfilter(c) function c23931679.wtfilter(c)
return not c:IsAttribute(ATTRIBUTE_WATER) and c:IsFaceup() return c:IsAttribute(ATTRIBUTE_ALL-ATTRIBUTE_WATER) and c:IsFaceup()
end end
function c23931679.rmfilter(c,at) function c23931679.rmfilter(c,at)
return c:GetAttribute()==at return c:GetAttribute()==at
......
...@@ -17,7 +17,7 @@ function c26593852.destg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -17,7 +17,7 @@ function c26593852.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetAttacker() local tc=Duel.GetAttacker()
if tc==c then tc=Duel.GetAttackTarget() end if tc==c then tc=Duel.GetAttackTarget() end
if chk==0 then return tc and tc:IsFaceup() and tc:IsAttribute(0x5f) end if chk==0 then return tc and tc:IsFaceup() and tc:IsAttribute(ATTRIBUTE_ALL-ATTRIBUTE_DARK) end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,tc,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,tc,1,0,0)
end end
function c26593852.desop(e,tp,eg,ep,ev,re,r,rp) function c26593852.desop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -36,7 +36,7 @@ function c4754691.descon(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,7 +36,7 @@ function c4754691.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsEnvironment(22702055) return Duel.IsEnvironment(22702055)
end end
function c4754691.desfilter(c) function c4754691.desfilter(c)
return c:IsFaceup() and not c:IsAttribute(ATTRIBUTE_WATER) return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_ALL-ATTRIBUTE_WATER)
end end
function c4754691.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c4754691.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c4754691.desfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c4754691.desfilter(chkc) 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