Commit 17e744f2 authored by TanakaKotoha's avatar TanakaKotoha

fbk

parent ac37ff9b
No preview for this file type
...@@ -14,6 +14,7 @@ function s.initial_effect(c) ...@@ -14,6 +14,7 @@ function s.initial_effect(c)
e1:SetCode(EVENT_PHASE + PHASE_END) e1:SetCode(EVENT_PHASE + PHASE_END)
e1:SetRange(LOCATION_EXTRA) e1:SetRange(LOCATION_EXTRA)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetValue(SUMMON_TYPE_SPECIAL+1)
e1:SetCondition(s.spcon) e1:SetCondition(s.spcon)
e1:SetCost(s.spcost) e1:SetCost(s.spcost)
e1:SetTarget(s.sptg) e1:SetTarget(s.sptg)
...@@ -82,7 +83,7 @@ function s.spop(e, tp, eg, ep, ev, re, r, rp) ...@@ -82,7 +83,7 @@ function s.spop(e, tp, eg, ep, ev, re, r, rp)
end end
function s.negop(e, tp, eg, ep, ev, re, r, rp) function s.negop(e, tp, eg, ep, ev, re, r, rp)
local c = e:GetHandler() local c = e:GetHandler()
if not c:GetSummonType()==SUMMON_TYPE_SPECIAL+1 then return end if c:GetSummonType()~=SUMMON_TYPE_SPECIAL+1 then return end
local e1 = Effect.CreateEffect(c) local e1 = Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DISABLE) e1:SetCode(EFFECT_DISABLE)
......
...@@ -36,11 +36,14 @@ end ...@@ -36,11 +36,14 @@ end
function s.activate(e, tp, eg, ep, ev, re, r, rp) function s.activate(e, tp, eg, ep, ev, re, r, rp)
if not e:GetHandler():IsRelateToEffect(e) then return end if not e:GetHandler():IsRelateToEffect(e) then return end
local g=Duel.GetMatchingGroup(s.tgfilter,tp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(s.tgfilter,tp,LOCATION_DECK,0,nil)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then if g:GetClassCount(Card.GetCode)<3 then return end
if Duel.SelectYesNo(tp,aux.Stringid(id,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local dg=g:Select(tp,1,3,nil) local dg=g:SelectSubGroup(tp,aux.dncheck,false,3,3)
if dg and dg:GetCount()==3 then
Duel.SendtoGrave(dg,REASON_EFFECT) Duel.SendtoGrave(dg,REASON_EFFECT)
end end
end
end end
function s.skipop(e, tp, eg, ep, ev, re, r, rp) function s.skipop(e, tp, eg, ep, ev, re, r, rp)
if Duel.GetTurnPlayer() ~= tp then if Duel.GetTurnPlayer() ~= tp then
......
...@@ -81,7 +81,7 @@ function c60151421.spop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -81,7 +81,7 @@ function c60151421.spop2(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_TRAP_ACT_IN_SET_TURN) e1:SetCode(EFFECT_TRAP_ACT_IN_SET_TURN)
e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE) e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1) g:GetFirst():RegisterEffect(e1,true)
else else
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetDescription(aux.Stringid(60151421,2)) e1:SetDescription(aux.Stringid(60151421,2))
......
...@@ -48,7 +48,6 @@ function cm.thfilter(c) ...@@ -48,7 +48,6 @@ function cm.thfilter(c)
end end
function cm.activate(e,tp,eg,ep,ev,re,r,rp) function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end if not e:GetHandler():IsRelateToEffect(e) then return end
Duel.Hint(HINT_MUSIC,0,aux.Stringid(m,2))
local g=Duel.GetMatchingGroup(cm.thfilter,tp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(cm.thfilter,tp,LOCATION_DECK,0,nil)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
......
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