Commit 437e09b2 authored by 聖園ミカ's avatar 聖園ミカ 🐟

duiduiduiduidui

parent 7522a370
...@@ -81,6 +81,9 @@ function cm.dmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -81,6 +81,9 @@ function cm.dmop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
--immune --immune
function cm.filter(c)
return c:IsFaceup() and c:IsSetCard(0x3ef7)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return Duel.GetFlagEffect(tp,m)==0 end if chk==0 then return Duel.GetFlagEffect(tp,m)==0 end
...@@ -88,21 +91,19 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -88,21 +91,19 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function cm.operation(e,tp,eg,ep,ev,re,r,rp) function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then local g=Duel.GetMatchingGroup(cm.filter,tp,LOCATION_MZONE,0,nil)
local e1=Effect.CreateEffect(c) local tc=g:GetFirst()
e1:SetType(EFFECT_TYPE_FIELD) while tc do
e1:SetCode(EFFECT_IMMUNE_EFFECT) local e4=Effect.CreateEffect(e:GetHandler())
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e4:SetType(EFFECT_TYPE_SINGLE)
e1:SetTargetRange(LOCATION_MZONE,0) e4:SetCode(EFFECT_IMMUNE_EFFECT)
e1:SetTarget(cm.efftg) e4:SetValue(cm.efilter)
e1:SetValue(cm.efilter) e4:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e1:SetReset(RESET_PHASE+PHASE_END) e4:SetOwnerPlayer(tp)
Duel.RegisterEffect(e1,tp) tc:RegisterEffect(e4)
tc=g:GetNext()
end end
end end
function cm.efftg(e,c)
return c:IsSetCard(0x3ef7)
end
function cm.efilter(e,re) function cm.efilter(e,re)
return e:GetHandler()~=re:GetOwner() and re:IsActiveType(TYPE_MONSTER) return e:GetHandler()~=re:GetOwner() and re:IsActiveType(TYPE_MONSTER)
end 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