Commit aafa53f2 authored by nanahira's avatar nanahira

eratta

parent 60c7f562
No preview for this file type
...@@ -19,13 +19,9 @@ function cm.effect_operation_3L(c,ctlm) ...@@ -19,13 +19,9 @@ function cm.effect_operation_3L(c,ctlm)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_SELF_DESTROY) e1:SetCode(EFFECT_DISABLE_FIELD)
e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE) e1:SetCondition(cm.discon)
e1:SetTargetRange(0,LOCATION_ONFIELD) e1:SetOperation(cm.disop)
e1:SetTarget(function(e,c)
return not c:IsImmuneToEffect(e) and e:GetHandler():GetColumnGroup():IsContains(c)
end)
e1:SetValue(aux.TRUE)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e1,true) c:RegisterEffect(e1,true)
Duel.Readjust() Duel.Readjust()
...@@ -48,4 +44,16 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,4 +44,16 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) e2:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e2,true) tc:RegisterEffect(e2,true)
end end
end
function cm.discon(e)
e:SetValue(0)
return true
end
function cm.disop(e,tp)
local c=e:GetHandler()
local flag1=bit.band(c:GetColumnZone(LOCATION_MZONE),0xffffff00)
local flag2=bit.band(bit.lshift(c:GetColumnZone(LOCATION_SZONE),8),0xffff00ff)
local flag3=bit.band(c:GetColumnZone(LOCATION_MZONE),0xff00ffff)
local flag4=bit.band(bit.lshift(c:GetColumnZone(LOCATION_SZONE),8),0xffff)
return (flag1+flag2+flag3+flag4) | 0xffff0000
end end
\ No newline at end of file
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