Commit 271b07d9 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent 6502e355
......@@ -132,6 +132,7 @@ function c12400072.op5(e,tp,eg,ep,ev,re,r,rp)
end
end
function c12400072.op6(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
......
......@@ -69,6 +69,7 @@ function c12400074.con3(e,c)
return Duel.IsExistingMatchingCard(c12400074.e,tp,LOCATION_MZONE,0,1,nil)
end
function c12400074.op5(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
......
......@@ -87,6 +87,7 @@ function c12400089.tglimit(e,c)
return c~=e:GetHandler()
end
function c12400089.op6(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
......
......@@ -26,9 +26,9 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc) and chkc~=c end
if chk==0 then
local zone=LOCATION_DECK
local zone=LOCATION_HAND+LOCATION_GRAVE
if Duel.IsExistingMatchingCard(s.filter1,tp,LOCATION_MZONE,0,1,nil,tp) then
zone=LOCATION_DECK+LOCATION_EXTRA end
zone=LOCATION_HAND+LOCATION_GRAVE+LOCATION_EXTRA end
return Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,0,1,c) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingMatchingCard(s.eqfilter,tp,zone,0,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
......@@ -40,7 +40,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc:IsFacedown() or not tc:IsRelateToEffect(e) then return end
local zone=LOCATION_DECK if tc:GetCode()==17033120 then zone=LOCATION_DECK+LOCATION_EXTRA end
local zone=LOCATION_HAND+LOCATION_GRAVE if tc:GetCode()==17033120 then zone=LOCATION_HAND+LOCATION_GRAVE+LOCATION_EXTRA end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
local ec=Duel.SelectMatchingCard(tp,s.eqfilter,tp,zone,0,1,1,nil,tp):GetFirst()
if ec then
......
......@@ -67,16 +67,16 @@ function s.ssop(e,tp,eg,ep,ev,re,r,rp)
end
end
function s.thcon(e,tp,eg,ep,ev,re,r,rp)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_ONFIELD) and chkc:IsCanAddCounter(0xacf,1) end
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_ONFIELD) and chkc:IsCanAddCounter(0xcaf,1) end
if chk==0 then return Duel.IsExistingTarget(Card.IsCanAddCounter,tp,LOCATION_ONFIELD,0,1,nil,0xcaf,1) end
return e:GetHandler():IsLocation(LOCATION_GRAVE) and r==REASON_SYNCHRO
end
function s.thfilter(c)
return c:IsFaceup() and c:IsSetCard(0x6ca4) and c:IsType(TYPE_SPELL) and c:IsCanAddCounter(0xacf,1)
return c:IsFaceup() and c:IsSetCard(0x6ca4) and c:IsType(TYPE_SPELL) and c:IsCanAddCounter(0xcaf,1)
end
function s.thop(e,tp,eg,ep,ev,re,r,rp)
local g = Duel.GetMatchingGroup(s.thfilter,tp,LOCATION_ONFIELD,0,nil)
for tc in aux.Next(g) do
tc:AddCounter(0xacf,1)
tc:AddCounter(0xcaf,1)
end
end
\ No newline at end of file
......@@ -44,7 +44,7 @@ function s.con1(e,tp,eg,ep,ev,re,r,rp)
return (c:IsSetCard(0x9ca4) or c:IsSetCard(0x6ca4)) and c:IsPreviousLocation(LOCATION_EXTRA)
end
function s.counter(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0xacf,1,true)
e:GetHandler():AddCounter(0xcaf,1,true)
end
function s.tkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0xcaf,1,REASON_COST) end
......
......@@ -71,7 +71,7 @@ function s.cncon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(Card.IsSummonPlayer,1,nil,1-tp)
end
function s.cnfilter(c)
return c:IsSetCard(0x6ca4) and c:IsCanAddCounter(0xacf,1) and c:IsFaceup()
return c:IsSetCard(0x6ca4) and c:IsCanAddCounter(0xcaf,1) and c:IsFaceup()
end
function s.cntg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
......@@ -83,6 +83,6 @@ end
function s.cnop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
tc:AddCounter(0xacf,1)
tc:AddCounter(0xcaf,1)
end
end
\ No newline at end of file
......@@ -71,7 +71,7 @@ function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TODECK,eg,1,0,0)
end
function s.acfilter(c)
return (c:IsSetCard(0x6ca4) or c:IsSetCard(0x9ca4)) and c:IsCanAddCounter(0xacf,1) and c:IsFaceup()
return (c:IsSetCard(0x6ca4) or c:IsSetCard(0x9ca4)) and c:IsCanAddCounter(0xcaf,1) and c:IsFaceup()
end
function s.tdop(e,tp,eg,ep,ev,re,r,rp)
local tc=re:GetHandler()
......@@ -81,7 +81,7 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_COUNTER)
local ag=Duel.SelectMatchingCard(tp,s.acfilter,tp,LOCATION_ONFIELD,0,1,1,nil)
if #ag>0 then
ag:GetFirst():AddCounter(0xacf,1)
ag:GetFirst():AddCounter(0xcaf,1)
end
end
end
......
......@@ -41,8 +41,8 @@ function s.cocon(e,tp,eg,ep,ev,re,r,rp)
end
function s.counter(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsCanAddCounter(0xacf,1) then
c:AddCounter(0xacf,1,true)
if c:IsCanAddCounter(0xcaf,1) then
c:AddCounter(0xcaf,1,true)
end
end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -80,7 +80,7 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.Release(g,REASON_EFFECT)>0 then
Duel.SendtoDeck(tc,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
e:GetHandler():AddCounter(0xacf,1)
e:GetHandler():AddCounter(0xcaf,1)
end
end
function s.repfilter(c,tp)
......
......@@ -50,7 +50,7 @@ function s.tgfilter(c)
return c:IsSetCard(0x6ca4) and c:IsAbleToGrave()
end
function s.cofilter(c)
return (c:IsSetCard(0x6ca4) or c:IsSetCard(0x9ca4)) and c:IsFaceup() and c:IsCanAddCounter(0xacf,1)
return (c:IsSetCard(0x6ca4) or c:IsSetCard(0x9ca4)) and c:IsFaceup() and c:IsCanAddCounter(0xcaf,1)
end
function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_DECK,0,1,nil) end
......@@ -63,5 +63,5 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_COUNTER)
local tc=Duel.SelectMatchingCard(tp,s.cofilter,tp,LOCATION_ONFIELD,0,1,1,nil):GetFirst()
tc:AddCounter(0xacf,1)
tc:AddCounter(0xcaf,1)
end
\ No newline at end of file
......@@ -16,7 +16,7 @@ function c50218540.initial_effect(c)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetDescription(aux.Stringid(50218540,1))
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_XMATERIAL)
e2:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_XMATERIAL)
e2:SetCondition(c50218540.xmcon)
c:RegisterEffect(e2)
end
......
......@@ -39,6 +39,9 @@ function c65035123.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DRAW,0,0,1-tp,1)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c65035123.sgfil(c)
return c:IsSetCard(0x9dac) and c:IsAbleToHand()
end
function c65035123.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.Draw(1-tp,1,REASON_EFFECT)~=0 and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND) then
local num=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)
......@@ -46,7 +49,7 @@ function c65035123.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetDecktopGroup(tp,num)
if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,p,HINTMSG_ATOHAND)
local sg=g:Select(tp,1,1,nil)
local sg=g:FilterSelect(c65035123.sgfil,tp,1,1,nil)
if sg:GetFirst():IsAbleToHand() then
Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg)
......
......@@ -39,7 +39,7 @@ function c65035127.nontuner(c,syncard)
end
function c65035127.thfilter(c)
return c:IsSetCard(0x9dac) and c:IsAbleToRemove()
return c:IsSetCard(0x9dac) and c:IsAbleToRemove() and c:IsType(TYPE_MONSTER)
end
function c65035127.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local num=Duel.GetMatchingGroupCount(c65035127.thfilter,tp,LOCATION_GRAVE,0,1,nil)
......
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