Commit 858c46dd authored by 聖園ミカ's avatar 聖園ミカ 🐟

md

parent 2516aec7
......@@ -61,12 +61,14 @@ function c17032430.fsoperation()
end
end
while sg:GetCount()<63 do
local button=true
local cg=mg:Filter(c17032430.racefilter,nil,sg,c)
if cg:GetCount()==0 then break end
local cancel_group=sg:Clone()
if gc then cancel_group:RemoveCard(gc) end
if sg:GetCount()<3 then button=false end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FMATERIAL)
local tc=cg:SelectUnselect(cancel_group,tp,true,false,3,63)
local tc=cg:SelectUnselect(cancel_group,tp,button,false,3,63)
if not tc then break end
if sg:IsContains(tc) then
sg:RemoveCard(tc)
......
......@@ -89,10 +89,12 @@ function c4270003.operation2(e,tp,eg,ep,ev,re,r,rp)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_CANNOT_TO_HAND)
e3:SetRange(LOCATION_MZONE)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetTargetRange(1,0)
e3:SetTarget(function(c) return c:IsLocation(LOCATION_DECK) or c:IsLocation(LOCATION_GRAVE) and not c:IsRace(RACE_BEASTWARRIOR) end)
e3:SetTargetRange(1,0)
e3:SetTarget(aux.TargetBoolFunction(function(c)
return (c:IsLocation(LOCATION_DECK) or c:IsLocation(LOCATION_GRAVE))
and not c:IsRace(RACE_BEASTWARRIOR)
end,LOCATION_DECK))
Duel.RegisterEffect(e3,tp)
end
end
......
......@@ -2,7 +2,7 @@
function c4270004.initial_effect(c)
aux.AddCodeList(c,4270001)
c:EnableReviveLimit()
aux.AddFusionProcCodeFun(c,4270001,aux.FilterBoolFunction(Card.IsFusionSetCard,0xa28),1,true,true)
aux.AddFusionProcCodeFun(c,4270001,aux.FilterBoolFunction(function(c)return c:IsFusionSetCard(0xa28) and c:IsType(TYPE_MONSTER) end),1,true,true)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
......
......@@ -2,7 +2,7 @@
function c4270005.initial_effect(c)
aux.AddCodeList(c,4270002)
c:EnableReviveLimit()
aux.AddFusionProcCodeFun(c,4270002,aux.FilterBoolFunction(Card.IsFusionSetCard,0xa28),1,true,true)
aux.AddFusionProcCodeFun(c,4270002,aux.FilterBoolFunction(function(c)return c:IsFusionSetCard(0xa28) and c:IsType(TYPE_MONSTER) end),1,true,true)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_REMOVE+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
......
......@@ -2,7 +2,7 @@
function c4270006.initial_effect(c)
aux.AddCodeList(c,4270003)
c:EnableReviveLimit()
aux.AddFusionProcCodeFun(c,4270003,aux.FilterBoolFunction(Card.IsFusionSetCard,0xa28),1,true,true)
aux.AddFusionProcCodeFun(c,4270003,aux.FilterBoolFunction(function(c)return c:IsFusionSetCard(0xa28) and c:IsType(TYPE_MONSTER) end),1,true,true)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_REMOVE+CATEGORY_LEAVE_GRAVE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
......
......@@ -2,7 +2,7 @@
function c4270017.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcFun2(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0xa28),aux.FilterBoolFunction(Card.IsRace,RACE_BEASTWARRIOR),true)
aux.AddFusionProcFun2(c,aux.FilterBoolFunction(function(c)return c:IsFusionSetCard(0xa28) and c:IsType(TYPE_MONSTER) end),aux.FilterBoolFunction(Card.IsRace,RACE_BEASTWARRIOR),true)
--fusion summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(4270017,0))
......
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