Commit c144d7e0 authored by Momobako's avatar Momobako

Push by Appveyor

parent d0d74aa4
...@@ -61,6 +61,7 @@ function c1200006.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,6 +61,7 @@ function c1200006.atkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(500) e1:SetValue(500)
e1:SetReset(RESET_EVENT+0x1ff0000)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
tc=sg:GetNext() tc=sg:GetNext()
end end
......
...@@ -54,7 +54,7 @@ function c1200016.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +54,7 @@ function c1200016.tgop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c1200016.filter1(c) function c1200016.filter1(c)
return c:IsSetCard(0xfba) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0xfba) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() and not c:Iscode(1200016)
end end
function c1200016.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c1200016.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c1200016.filter1(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c1200016.filter1(chkc) end
......
...@@ -85,7 +85,7 @@ function c1200051.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,7 +85,7 @@ function c1200051.op(e,tp,eg,ep,ev,re,r,rp)
local m=Duel.Release(rg,REASON_EFFECT) local m=Duel.Release(rg,REASON_EFFECT)
if m>0 then if m>0 then
Duel.BreakEffect() Duel.BreakEffect()
local rgg=Duel.SelectMatchingCard(tp,Card.IsReleasable,0,LOCATION_ONFIELD,1,m,nil) local rgg=Duel.SelectMatchingCard(tp,Card.IsReleasable,tp,0,LOCATION_ONFIELD,1,m,nil)
Duel.Release(rgg,REASON_EFFECT) Duel.Release(rgg,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -48,7 +48,7 @@ function c1200055.initial_effect(c) ...@@ -48,7 +48,7 @@ function c1200055.initial_effect(c)
--to grave --to grave
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(1200055,3)) e2:SetDescription(aux.Stringid(1200055,3))
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_NO_TURN_RESET) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_PZONE) e2:SetRange(LOCATION_PZONE)
e2:SetCountLimit(1) e2:SetCountLimit(1)
...@@ -121,7 +121,7 @@ function c1200055.penop(e,tp,eg,ep,ev,re,r,rp) ...@@ -121,7 +121,7 @@ function c1200055.penop(e,tp,eg,ep,ev,re,r,rp)
Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
end end
function c1200055.ptg(e,tp,eg,ep,ev,re,r,rp,chk) function c1200055.ptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK,0,1,nil,0xfba) end if chk==0 then return (not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1)) and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK,0,1,nil,0xfba) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,0,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,0,1,tp,LOCATION_DECK)
end end
function c1200055.pop(e,tp,eg,ep,ev,re,r,rp) function c1200055.pop(e,tp,eg,ep,ev,re,r,rp)
...@@ -154,7 +154,7 @@ function c1200055.ppop(e,tp,eg,ep,ev,re,r,rp) ...@@ -154,7 +154,7 @@ function c1200055.ppop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_LSCALE) e1:SetCode(EFFECT_UPDATE_LSCALE)
e1:SetValue(tc:GetLevel()+tc:GetRank()) e1:SetValue(tc:GetLevel()+tc:GetRank())
e1:SetReset(RESET_EVENT+0x1ff0000) e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=e1:Clone() local e2=e1:Clone()
e2:SetCode(EFFECT_UPDATE_RSCALE) e2:SetCode(EFFECT_UPDATE_RSCALE)
......
...@@ -65,10 +65,12 @@ function c17060833.mfilterf(c,tp,mg,rc) ...@@ -65,10 +65,12 @@ function c17060833.mfilterf(c,tp,mg,rc)
end end
function c17060833.target(e,tp,eg,ep,ev,re,r,rp,chk) function c17060833.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if bit.band(c:GetOriginalType(),0x81)~=0x81
or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end
if chk==0 then if chk==0 then
local mg1=Duel.GetRitualMaterial(tp) local mg1=Duel.GetRitualMaterial(tp)
local mg2=Duel.GetMatchingGroup(c17060833.mfilter,tp,LOCATION_GRAVE,0,nil) local mg2=Duel.GetMatchingGroup(c17060833.mfilter,tp,LOCATION_GRAVE,0,nil)
local ft=Duel.GetMZoneCount(tp) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return ft>-1 and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) return ft>-1 and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true)
end end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
...@@ -77,7 +79,7 @@ function c17060833.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,7 +79,7 @@ function c17060833.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local mg1=Duel.GetRitualMaterial(tp) local mg1=Duel.GetRitualMaterial(tp)
local mg2=Duel.GetMatchingGroup(c17060833.mfilter,tp,LOCATION_GRAVE,0,nil) local mg2=Duel.GetMatchingGroup(c17060833.mfilter,tp,LOCATION_GRAVE,0,nil)
local ft=Duel.GetMZoneCount(tp) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
if c then if c then
local mg=mg1:Filter(Card.IsCanBeRitualMaterial,c,c) local mg=mg1:Filter(Card.IsCanBeRitualMaterial,c,c)
......
...@@ -74,19 +74,22 @@ function c17082105.mfilterf(c,tp,mg,rc) ...@@ -74,19 +74,22 @@ function c17082105.mfilterf(c,tp,mg,rc)
end end
function c17082105.target(e,tp,eg,ep,ev,re,r,rp,chk) function c17082105.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if bit.band(c:GetOriginalType(),0x81)~=0x81
or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end
if chk==0 then if chk==0 then
local mg1=Duel.GetRitualMaterial(tp) local mg1=Duel.GetRitualMaterial(tp)
local mg2=Duel.GetMatchingGroup(c17082105.mfilter,tp,LOCATION_GRAVE,0,nil) local mg2=Duel.GetMatchingGroup(c17082105.mfilter,tp,LOCATION_GRAVE,0,nil)
local ft=Duel.GetMZoneCount(tp) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return ft>-1 and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) return ft>-1 and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true)
end end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
Duel.Hint(11,0,aux.Stringid(17082105,8))
end end
function c17082105.activate(e,tp,eg,ep,ev,re,r,rp) function c17082105.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local mg1=Duel.GetRitualMaterial(tp) local mg1=Duel.GetRitualMaterial(tp)
local mg2=Duel.GetMatchingGroup(c17082105.mfilter,tp,LOCATION_GRAVE,0,nil) local mg2=Duel.GetMatchingGroup(c17082105.mfilter,tp,LOCATION_GRAVE,0,nil)
local ft=Duel.GetMZoneCount(tp) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
if c then if c then
local mg=mg1:Filter(Card.IsCanBeRitualMaterial,c,c) local mg=mg1:Filter(Card.IsCanBeRitualMaterial,c,c)
......
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