Commit 1dca0c08 authored by VanillaSalt's avatar VanillaSalt

update

parent d1d99049
......@@ -54,15 +54,10 @@ function c16625614.dbop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,id)
local tc=g:GetFirst()
if tc and Duel.IsPlayerCanSpecialSummonMonster(tp,id,0,0x11,0,0,1,RACE_FIEND,ATTRIBUTE_DARK)
and tc:IsCanBeSpecialSummoned(e,181,tp,true,false)
and Duel.SelectYesNo(tp,aux.Stringid(16625614,0)) then
tc:ResetEffect(EFFECT_CANNOT_SPECIAL_SUMMON,RESET_CODE)
tc:AddMonsterAttribute(TYPE_NORMAL,ATTRIBUTE_DARK,RACE_FIEND,1,0,0)
Duel.SpecialSummonStep(tc,0,tp,tp,true,false,POS_FACEUP)
c:AddMonsterAttributeComplete()
local e6=Effect.CreateEffect(tc)
e6:SetType(EFFECT_TYPE_SINGLE)
e6:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
tc:RegisterEffect(e6,true)
Duel.SpecialSummonStep(tc,181,tp,tp,true,false,POS_FACEUP)
--immune
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -6,6 +6,10 @@ function c30170981.initial_effect(c)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e2:SetCode(EFFECT_SPSUMMON_COST)
e2:SetCost(c30170981.spcost)
c:RegisterEffect(e2)
end
function c30170981.spcost(e,c,tp,sumtype)
return sumtype==SUMMON_TYPE_SPECIAL+181
end
......@@ -6,6 +6,10 @@ function c31893528.initial_effect(c)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e2:SetCode(EFFECT_SPSUMMON_COST)
e2:SetCost(c31893528.spcost)
c:RegisterEffect(e2)
end
function c31893528.spcost(e,c,tp,sumtype)
return sumtype==SUMMON_TYPE_SPECIAL+181
end
......@@ -6,6 +6,10 @@ function c67287533.initial_effect(c)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e2:SetCode(EFFECT_SPSUMMON_COST)
e2:SetCost(c67287533.spcost)
c:RegisterEffect(e2)
end
function c67287533.spcost(e,c,tp,sumtype)
return sumtype==SUMMON_TYPE_SPECIAL+181
end
......@@ -17,21 +17,22 @@ end
function c81210420.filter(c)
return not c:IsType(TYPE_TOKEN)
end
function c81210420.spfilter(c,tp)
function c81210420.spfilter(c,e,tp)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and Duel.IsPlayerCanSpecialSummonMonster(tp,c:GetCode(),nil,0x11,0,0,0,0,0)
and c:IsCanBeSpecialSummoned(e,0,tp,true,false,POS_FACEDOWN)
end
function c81210420.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c81210420.filter,tp,LOCATION_MZONE,0,1,nil)
and not Duel.IsPlayerAffectedByEffect(tp,59822133)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>1
and Duel.IsExistingMatchingCard(c81210420.spfilter,tp,LOCATION_DECK,0,2,nil,tp)
and Duel.IsExistingMatchingCard(c81210420.spfilter,tp,LOCATION_DECK,0,2,nil,e,tp)
end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_DECK)
end
function c81210420.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerAffectedByEffect(tp,59822133) then return end
if Duel.GetLocationCount(tp,LOCATION_MZONE)<2 then return end
local g=Duel.GetMatchingGroup(c81210420.spfilter,tp,LOCATION_DECK,0,nil,tp)
local g=Duel.GetMatchingGroup(c81210420.spfilter,tp,LOCATION_DECK,0,nil,e,tp)
if g:GetCount()<2 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
local tc=Duel.SelectMatchingCard(tp,c81210420.filter,tp,LOCATION_MZONE,0,1,1,nil):GetFirst()
......
......@@ -6,6 +6,10 @@ function c94772232.initial_effect(c)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e2:SetCode(EFFECT_SPSUMMON_COST)
e2:SetCost(c94772232.spcost)
c:RegisterEffect(e2)
end
function c94772232.spcost(e,c,tp,sumtype)
return sumtype==SUMMON_TYPE_SPECIAL+181
end
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