Commit c76ff857 authored by Nemo Ma's avatar Nemo Ma

f

parent 3e03a04c
......@@ -56,6 +56,7 @@ function cm.initial_effect(c)
if tc then
Duel.Hint(HINT_CARD,0,m)
Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)
Duel.ConfirmCards(1-tp,c)
_RegisterEffect(tc,e,bool)
Duel.Draw(tp,1,REASON_EFFECT)
return
......
......@@ -28,7 +28,7 @@ function cm.spfilter(c,e,tp)
return c:IsSetCard(0x18b) and ((c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0) or c:IsSSetable())
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(cm.rfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(cm.rfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,e:GetHandler()) end
local rg=Duel.GetMatchingGroup(cm.rfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,nil)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,rg,1,tp,LOCATION_HAND+LOCATION_GRAVE)
......
......@@ -119,7 +119,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_IMMUNE_EFFECT)
e1:SetLabelObject(token)
--e1:SetLabelObject(token)
e1:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD)
e1:SetValue(cm.efilter)
token:RegisterEffect(e1,true)
......@@ -153,7 +153,6 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.efilter(e,te)
local seq=e:GetHandler():GetSequence()
return te:IsActiveType(TYPE_MONSTER) and seq==e:GetHandler():GetSequence()
function cm.efilter(e,re)
return re:IsActiveType(TYPE_MONSTER) and e:GetHandler():GetColumnGroup():IsContains(re:GetHandler())
end
......@@ -62,8 +62,7 @@ end
function c12825613.drop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT)
if c:GetOwner()~=e:GetHandlerPlayer() then
if Duel.Draw(p,d,REASON_EFFECT)>0 and c:GetOwner()~=e:GetHandlerPlayer() then
if Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 then
Duel.GetControl(c,1-tp)
else
......
......@@ -282,6 +282,7 @@ function cm.rsop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.immval(e,te)
local c=e:GetHandler()
if not c:IsLocation(LOCATION_FZONE) then return false end
local tp=c:GetControler()
local eset={c:IsHasEffect(m+50)}
local res=te:GetOwner()~=e:GetOwner() and Duel.CheckReleaseGroup(tp,nil,1,nil)
......
local m=53757001
local cm=_G["c"..m]
cm.name="次元秽界 赤"
if not pcall(function() require("expansions/script/c53702500") end) then require("script/c53702500") end
function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
......@@ -68,6 +69,7 @@ function cm.initial_effect(c)
e6_1:SetTarget(cm.actarget3)
e6_1:SetOperation(cm.repoperation)
Duel.RegisterEffect(e6_1,0)
SNNM.Global_in_Initial_Reset(c,{e3,e4,e5,e6,e6_1})
--[[local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetCode(EFFECT_ACTIVATE_COST)
......
local m=53757003
local cm=_G["c"..m]
cm.name="次元秽界 金"
if not pcall(function() require("expansions/script/c53702500") end) then require("script/c53702500") end
function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
......@@ -65,6 +66,7 @@ function cm.initial_effect(c)
e6_1:SetTarget(cm.actarget3)
e6_1:SetOperation(cm.repoperation)
Duel.RegisterEffect(e6_1,0)
SNNM.Global_in_Initial_Reset(c,{e3,e4,e5,e6,e6_1})
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_SINGLE)
e7:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
......
local m=53757005
local cm=_G["c"..m]
cm.name="次元秽界 律"
if not pcall(function() require("expansions/script/c53702500") end) then require("script/c53702500") end
function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
......@@ -65,6 +66,7 @@ function cm.initial_effect(c)
e6_1:SetTarget(cm.actarget3)
e6_1:SetOperation(cm.repoperation)
Duel.RegisterEffect(e6_1,0)
SNNM.Global_in_Initial_Reset(c,{e3,e4,e5,e6,e6_1})
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_SINGLE)
e7:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
......
local m=53757007
local cm=_G["c"..m]
cm.name="次元秽界 铜"
if not pcall(function() require("expansions/script/c53702500") end) then require("script/c53702500") end
function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
......@@ -65,6 +66,7 @@ function cm.initial_effect(c)
e6_1:SetTarget(cm.actarget3)
e6_1:SetOperation(cm.repoperation)
Duel.RegisterEffect(e6_1,0)
SNNM.Global_in_Initial_Reset(c,{e3,e4,e5,e6,e6_1})
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_SINGLE)
e7:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
......
local m=53757009
local cm=_G["c"..m]
cm.name="次元秽界 冽"
if not pcall(function() require("expansions/script/c53702500") end) then require("script/c53702500") end
function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
......@@ -65,6 +66,7 @@ function cm.initial_effect(c)
e6_1:SetTarget(cm.actarget3)
e6_1:SetOperation(cm.repoperation)
Duel.RegisterEffect(e6_1,0)
SNNM.Global_in_Initial_Reset(c,{e3,e4,e5,e6,e6_1})
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_SINGLE)
e7:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
......
......@@ -12,9 +12,8 @@ function cm.initial_effect(c)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
end
function cm.cfilter1(c)
return c:IsFaceup() and c:IsSetCard(0x412)
return c:IsFaceup() and c:IsSetCard(0x412) and c:IsType(TYPE_XYZ)
end
function cm.cfilter2(c)
return c:IsFaceup() and c:IsLevel(10)
......@@ -32,14 +31,17 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,1,0,0)
end
end
function cm.actcfilter(c,e)
return c:IsFaceup() and c:IsSetCard(0x412) and c:IsType(TYPE_XYZ) and not c:IsImmuneToEffect(e)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT)
end
if Duel.IsExistingMatchingCard(cm.actcfilter,tp,LOCATION_MZONE,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(m,0)) and c:IsRelateToEffect(e) then
local g2=Duel.SelectMatchingCard(tp,cm.actcfilter,tp,LOCATION_MZONE,0,1,1,nil)
local c=e:GetHandler()
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) and Duel.Destroy(eg,REASON_EFFECT)>0
and Duel.IsExistingMatchingCard(cm.actcfilter,tp,LOCATION_MZONE,0,1,nil,e) and c:IsLocation(LOCATION_ONFIELD)
and c:IsRelateToEffect(e) and c:IsCanOverlay() and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
local g2=Duel.SelectMatchingCard(tp,cm.actcfilter,tp,LOCATION_MZONE,0,1,1,nil,e)
local sc=g2:GetFirst()
c:CancelToGrave()
Duel.Overlay(sc,Group.FromCards(c))
end
end
\ No newline at end of file
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