Commit fdfe4a9d authored by 竹中千惠理's avatar 竹中千惠理

2

parent 727cb065
...@@ -10,7 +10,7 @@ function cm.initial_effect(c) ...@@ -10,7 +10,7 @@ function cm.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e1:GetCondition(cm.con) e1:SetCondition(cm.con)
e1:SetValue(1) e1:SetValue(1)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--immune --immune
...@@ -19,7 +19,7 @@ function cm.initial_effect(c) ...@@ -19,7 +19,7 @@ function cm.initial_effect(c)
e3:SetCode(EFFECT_IMMUNE_EFFECT) e3:SetCode(EFFECT_IMMUNE_EFFECT)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:GetCondition(cm.con) e3:SetCondition(cm.con)
e3:SetValue(cm.efilter) e3:SetValue(cm.efilter)
c:RegisterEffect(e3) c:RegisterEffect(e3)
if not cst==true then if not cst==true then
......
...@@ -89,7 +89,7 @@ function cm.tgfil(c) ...@@ -89,7 +89,7 @@ function cm.tgfil(c)
end end
function cm.con2(e, tp, eg, ep, ev, re, r, rp) function cm.con2(e, tp, eg, ep, ev, re, r, rp)
local ch = Duel.GetCurrentChain(true) - 1 local ch = Duel.GetCurrentChain() - 1
if ch <= 0 then return false end if ch <= 0 then return false end
local cplayer = Duel.GetChainInfo(ch, CHAININFO_TRIGGERING_CONTROLER) local cplayer = Duel.GetChainInfo(ch, CHAININFO_TRIGGERING_CONTROLER)
local ceff = Duel.GetChainInfo(ch, CHAININFO_TRIGGERING_EFFECT) local ceff = Duel.GetChainInfo(ch, CHAININFO_TRIGGERING_EFFECT)
......
...@@ -82,6 +82,7 @@ function cm.desrepop(e,tp,eg,ep,ev,re,r,rp) ...@@ -82,6 +82,7 @@ function cm.desrepop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
table.insert(cm.tab,g:GetFirst()) table.insert(cm.tab,g:GetFirst())
local tc=g:GetFirst()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0)) e1:SetDescription(aux.Stringid(m,0))
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -241,12 +241,13 @@ function cm.lvop(e,tp,eg,ep,ev,re,r,rp) ...@@ -241,12 +241,13 @@ function cm.lvop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.mgfilter(c,sync) function cm.mgfilter(c,tp,sync)
return c:IsControler(tp) and not c:IsFacedown() return c:IsControler(tp) and not c:IsFacedown()
and bit.band(c:GetReason(),0x80008)==0x80008 and c:GetReasonCard()==sync and bit.band(c:GetReason(),0x80008)==0x80008 and c:GetReasonCard()==sync
and c:IsAbleToHand() and c:IsAbleToHand()
end end
function cm.bkop(e,tp,eg,ep,ev,re,r,rp) function cm.bkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
local bg=e:GetLabelObject():GetLabelObject() local bg=e:GetLabelObject():GetLabelObject()
Duel.SendtoDeck(c,nil,2,REASON_EFFECT) Duel.SendtoDeck(c,nil,2,REASON_EFFECT)
...@@ -254,7 +255,7 @@ function cm.bkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -254,7 +255,7 @@ function cm.bkop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(bg,nil,2,REASON_EFFECT) Duel.SendtoDeck(bg,nil,2,REASON_EFFECT)
local b=#Duel.GetOperatedGroup() local b=#Duel.GetOperatedGroup()
local mg=e:GetHandler():GetMaterial() local mg=e:GetHandler():GetMaterial()
--if a~=0 and b~=0 and #mg~=0 and mg:FilterCount(aux.NecroValleyFilter(cm.mgfilter),nil,e:GetHandler)==#mg and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then --if a~=0 and b~=0 and #mg~=0 and mg:FilterCount(aux.NecroValleyFilter(cm.mgfilter),nil,tp,e:GetHandler)==#mg and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
-- Duel.BreakEffect() -- Duel.BreakEffect()
-- local mc=mg:Select(tp,1,1,nil) -- local mc=mg:Select(tp,1,1,nil)
-- Duel.SendtoHand(mc,nil,REASON_EFFECT) -- Duel.SendtoHand(mc,nil,REASON_EFFECT)
......
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