Commit 160cd17c authored by mercury233's avatar mercury233

AddCodeList Visas Starfrost

parent b3b4bc49
--壱世壊に澄み渡る残響 --壱世壊に澄み渡る残響
function c1329620.initial_effect(c) function c1329620.initial_effect(c)
--Activate aux.AddCodeList(c,56099748)
local e1=Effect.CreateEffect(c) --Activate
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_TODECK+CATEGORY_TOGRAVE) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCategory(CATEGORY_NEGATE+CATEGORY_TODECK+CATEGORY_TOGRAVE)
e1:SetCode(EVENT_CHAINING) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCountLimit(1,1329620) e1:SetCode(EVENT_CHAINING)
e1:SetCondition(c1329620.condition) e1:SetCountLimit(1,1329620)
e1:SetTarget(c1329620.target) e1:SetCondition(c1329620.condition)
e1:SetOperation(c1329620.activate) e1:SetTarget(c1329620.target)
c:RegisterEffect(e1) e1:SetOperation(c1329620.activate)
--to hand c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) --to hand
e2:SetCategory(CATEGORY_TOHAND) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetCategory(CATEGORY_TOHAND)
e2:SetCode(EVENT_TO_GRAVE) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_TO_GRAVE)
e2:SetCountLimit(1,1329620) e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e2:SetCondition(c1329620.thcon) e2:SetCountLimit(1,1329620)
e2:SetTarget(c1329620.thtg) e2:SetCondition(c1329620.thcon)
e2:SetOperation(c1329620.thop) e2:SetTarget(c1329620.thtg)
c:RegisterEffect(e2) e2:SetOperation(c1329620.thop)
end c:RegisterEffect(e2)
function c1329620.actcfilter(c) end
return ((c:IsSetCard(0x181) and c:IsLocation(LOCATION_MZONE)) or c:IsCode(56099748)) and c:IsFaceup() function c1329620.actcfilter(c)
end return ((c:IsSetCard(0x181) and c:IsLocation(LOCATION_MZONE)) or c:IsCode(56099748)) and c:IsFaceup()
function c1329620.condition(e,tp,eg,ep,ev,re,r,rp) end
return (re:IsActiveType(TYPE_MONSTER) or re:IsHasType(EFFECT_TYPE_ACTIVATE)) and Duel.IsChainNegatable(ev) function c1329620.condition(e,tp,eg,ep,ev,re,r,rp)
and Duel.IsExistingMatchingCard(c1329620.actcfilter,tp,LOCATION_ONFIELD,0,1,nil) return (re:IsActiveType(TYPE_MONSTER) or re:IsHasType(EFFECT_TYPE_ACTIVATE)) and Duel.IsChainNegatable(ev)
end and Duel.IsExistingMatchingCard(c1329620.actcfilter,tp,LOCATION_ONFIELD,0,1,nil)
function c1329620.cfilter(c) end
return c:IsType(TYPE_MONSTER) and c:IsAbleToGrave() function c1329620.cfilter(c)
end return c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
function c1329620.target(e,tp,eg,ep,ev,re,r,rp,chk) end
if chk==0 then return Duel.IsExistingMatchingCard(c1329620.cfilter,tp,LOCATION_HAND,0,1,nil) end function c1329620.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0) if chk==0 then return Duel.IsExistingMatchingCard(c1329620.cfilter,tp,LOCATION_HAND,0,1,nil) end
if re:GetHandler():IsRelateToEffect(re) then Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TODECK,eg,1,0,0) if re:GetHandler():IsRelateToEffect(re) then
end Duel.SetOperationInfo(0,CATEGORY_TODECK,eg,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_HAND) end
end Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_HAND)
function c1329620.activate(e,tp,eg,ep,ev,re,r,rp) end
local ec=re:GetHandler() function c1329620.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateActivation(ev) and ec:IsRelateToEffect(re) then local ec=re:GetHandler()
ec:CancelToGrave() if Duel.NegateActivation(ev) and ec:IsRelateToEffect(re) then
if Duel.SendtoDeck(ec,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)~=0 and ec:IsLocation(LOCATION_DECK+LOCATION_EXTRA) then ec:CancelToGrave()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) if Duel.SendtoDeck(ec,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)~=0 and ec:IsLocation(LOCATION_DECK+LOCATION_EXTRA) then
local g=Duel.SelectMatchingCard(tp,c1329620.cfilter,tp,LOCATION_HAND,0,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
if #g>0 then local g=Duel.SelectMatchingCard(tp,c1329620.cfilter,tp,LOCATION_HAND,0,1,1,nil)
Duel.BreakEffect() if #g>0 then
Duel.SendtoGrave(g,REASON_EFFECT) Duel.BreakEffect()
end Duel.SendtoGrave(g,REASON_EFFECT)
end end
end end
end end
function c1329620.thcon(e,tp,eg,ep,ev,re,r,rp) end
return e:GetHandler():IsReason(REASON_EFFECT) function c1329620.thcon(e,tp,eg,ep,ev,re,r,rp)
end return e:GetHandler():IsReason(REASON_EFFECT)
function c1329620.thfilter(c) end
return c:IsSetCard(0x181) and c:IsType(TYPE_MONSTER) and c:IsFaceup() and c:IsAbleToHand() function c1329620.thfilter(c)
end return c:IsSetCard(0x181) and c:IsType(TYPE_MONSTER) and c:IsFaceup() and c:IsAbleToHand()
function c1329620.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) end
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c1329620.thfilter(chkc) end function c1329620.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c1329620.thfilter,tp,LOCATION_REMOVED,0,1,nil) end if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c1329620.thfilter(chkc) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) if chk==0 then return Duel.IsExistingTarget(c1329620.thfilter,tp,LOCATION_REMOVED,0,1,nil) end
local g=Duel.SelectTarget(tp,c1329620.thfilter,tp,LOCATION_REMOVED,0,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0) local g=Duel.SelectTarget(tp,c1329620.thfilter,tp,LOCATION_REMOVED,0,1,1,nil)
end Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
function c1329620.thop(e,tp,eg,ep,ev,re,r,rp) end
local tc=Duel.GetFirstTarget() function c1329620.thop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then local tc=Duel.GetFirstTarget()
Duel.SendtoHand(tc,nil,REASON_EFFECT) if tc:IsRelateToEffect(e) then
end Duel.SendtoHand(tc,nil,REASON_EFFECT)
end end
end
--械貶する肆世壊 --械貶する肆世壊
function c32152870.initial_effect(c) function c32152870.initial_effect(c)
--Activate aux.AddCodeList(c,56099748)
local e1=Effect.CreateEffect(c) --Activate
e1:SetDescription(aux.Stringid(32152870,0)) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_POSITION) e1:SetDescription(aux.Stringid(32152870,0))
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_POSITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c32152870.target) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetOperation(c32152870.activate) e1:SetTarget(c32152870.target)
c:RegisterEffect(e1) e1:SetOperation(c32152870.activate)
--to hand c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) --to hand
e2:SetDescription(aux.Stringid(32152870,1)) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TOHAND) e2:SetDescription(aux.Stringid(32152870,1))
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetCategory(CATEGORY_TOHAND)
e2:SetRange(LOCATION_GRAVE) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCountLimit(1,32152870) e2:SetRange(LOCATION_GRAVE)
e2:SetCondition(c32152870.thcon) e2:SetCountLimit(1,32152870)
e2:SetCost(aux.bfgcost) e2:SetCondition(c32152870.thcon)
e2:SetTarget(c32152870.thtg) e2:SetCost(aux.bfgcost)
e2:SetOperation(c32152870.thop) e2:SetTarget(c32152870.thtg)
c:RegisterEffect(e2) e2:SetOperation(c32152870.thop)
end c:RegisterEffect(e2)
function c32152870.filter(c) end
return c:IsCode(56063182) and (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsAbleToHand() function c32152870.filter(c)
end return c:IsCode(56063182) and (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsAbleToHand()
function c32152870.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) end
if chkc then return chkc:IsLocation(LOCATION_ONFIELD+LOCATION_GRAVE) and chkc:IsControler(tp) function c32152870.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
and c32152870.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_ONFIELD+LOCATION_GRAVE) and chkc:IsControler(tp)
if chk==0 then return Duel.IsExistingTarget(c32152870.filter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,nil) end and c32152870.filter(chkc) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) if chk==0 then return Duel.IsExistingTarget(c32152870.filter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,nil) end
local g=Duel.SelectTarget(tp,c32152870.filter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0) local g=Duel.SelectTarget(tp,c32152870.filter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,1,nil)
end Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
function c32152870.actcfilter(c,tp) end
return c:IsFaceup() and c:IsCode(56099748) function c32152870.actcfilter(c,tp)
end return c:IsFaceup() and c:IsCode(56099748)
function c32152870.actfilter(c,tp) end
return c:IsFaceup() and c:IsCanTurnSet() function c32152870.actfilter(c,tp)
end return c:IsFaceup() and c:IsCanTurnSet()
function c32152870.activate(e,tp,eg,ep,ev,re,r,rp) end
local tc=Duel.GetFirstTarget() function c32152870.activate(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) and Duel.SendtoHand(tc,nil,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_HAND) local tc=Duel.GetFirstTarget()
and Duel.IsExistingMatchingCard(c32152870.actcfilter,tp,LOCATION_ONFIELD,0,1,nil) if tc:IsRelateToEffect(e) and Duel.SendtoHand(tc,nil,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_HAND)
and Duel.IsExistingMatchingCard(c32152870.actfilter,tp,0,LOCATION_MZONE,1,nil) and Duel.IsExistingMatchingCard(c32152870.actcfilter,tp,LOCATION_ONFIELD,0,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(32152870,2)) then and Duel.IsExistingMatchingCard(c32152870.actfilter,tp,0,LOCATION_MZONE,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) and Duel.SelectYesNo(tp,aux.Stringid(32152870,2)) then
local g=Duel.SelectMatchingCard(tp,c32152870.actfilter,tp,0,LOCATION_MZONE,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE)
if #g>0 then local g=Duel.SelectMatchingCard(tp,c32152870.actfilter,tp,0,LOCATION_MZONE,1,1,nil)
Duel.BreakEffect() if #g>0 then
Duel.ChangePosition(g,POS_FACEDOWN_DEFENSE) Duel.BreakEffect()
end Duel.ChangePosition(g,POS_FACEDOWN_DEFENSE)
end end
end end
function c32152870.thcon(e,tp,eg,ep,ev,re,r,rp) end
return Duel.IsExistingMatchingCard(Card.IsDefensePos,tp,LOCATION_MZONE,LOCATION_MZONE,3,nil) function c32152870.thcon(e,tp,eg,ep,ev,re,r,rp)
end return Duel.IsExistingMatchingCard(Card.IsDefensePos,tp,LOCATION_MZONE,LOCATION_MZONE,3,nil)
function c32152870.thfilter(c) end
return c:IsSetCard(0x17a) and c:IsAbleToHand() function c32152870.thfilter(c)
end return c:IsSetCard(0x17a) and c:IsAbleToHand()
function c32152870.thtg(e,tp,eg,ep,ev,re,r,rp,chk) end
if chk==0 then return Duel.IsExistingMatchingCard(c32152870.thfilter,tp,LOCATION_GRAVE,0,1,nil) end function c32152870.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE) if chk==0 then return Duel.IsExistingMatchingCard(c32152870.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
end Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
function c32152870.thop(e,tp,eg,ep,ev,re,r,rp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) function c32152870.thop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c32152870.thfilter,tp,LOCATION_GRAVE,0,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
if g:GetCount()>0 then local g=Duel.SelectMatchingCard(tp,c32152870.thfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.SendtoHand(g,nil,REASON_EFFECT) if g:GetCount()>0 then
end Duel.SendtoHand(g,nil,REASON_EFFECT)
end end
end
--壱世壊に渦巻く反響 --壱世壊に渦巻く反響
function c33878367.initial_effect(c) function c33878367.initial_effect(c)
--spsummon aux.AddCodeList(c,56099748)
local e1=Effect.CreateEffect(c) --spsummon
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOGRAVE) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOGRAVE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCountLimit(1,33878367) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c33878367.sptg) e1:SetCountLimit(1,33878367)
e1:SetOperation(c33878367.spop) e1:SetTarget(c33878367.sptg)
c:RegisterEffect(e1) e1:SetOperation(c33878367.spop)
--to hand c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) --to hand
e2:SetCategory(CATEGORY_TOHAND) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetCategory(CATEGORY_TOHAND)
e2:SetCode(EVENT_TO_GRAVE) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_TO_GRAVE)
e2:SetCountLimit(1,33878367) e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e2:SetCondition(c33878367.thcon) e2:SetCountLimit(1,33878367)
e2:SetTarget(c33878367.thtg) e2:SetCondition(c33878367.thcon)
e2:SetOperation(c33878367.thop) e2:SetTarget(c33878367.thtg)
c:RegisterEffect(e2) e2:SetOperation(c33878367.thop)
end c:RegisterEffect(e2)
function c33878367.spfilter(c,e,tp) end
return (c:IsSetCard(0x181) or c:IsCode(56099748)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) function c33878367.spfilter(c,e,tp)
end return (c:IsSetCard(0x181) or c:IsCode(56099748)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
function c33878367.sptg(e,tp,eg,ep,ev,re,r,rp,chk) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 function c33878367.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
and Duel.IsExistingMatchingCard(c33878367.spfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,1,nil,tp,LOCATION_DECK+LOCATION_GRAVE) and Duel.IsExistingMatchingCard(c33878367.spfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,1,nil,tp,LOCATION_MZONE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,1,nil,tp,LOCATION_DECK+LOCATION_GRAVE)
end Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,1,nil,tp,LOCATION_MZONE)
function c33878367.spop(e,tp,eg,ep,ev,re,r,rp) end
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end function c33878367.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c33878367.spfilter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,e,tp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tc=g:GetFirst() local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c33878367.spfilter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,e,tp)
if tc and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)>0 then local tc=g:GetFirst()
local sg=Duel.GetMatchingGroup(c33878367.tgfilter,tp,LOCATION_MZONE,0,nil,tc:GetRace(),tc:GetAttribute()) if tc and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)>0 then
if sg:GetCount()>0 then local sg=Duel.GetMatchingGroup(c33878367.tgfilter,tp,LOCATION_MZONE,0,nil,tc:GetRace(),tc:GetAttribute())
Duel.BreakEffect() if sg:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.BreakEffect()
local sc=sg:Select(tp,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
Duel.SendtoGrave(sc,REASON_EFFECT) local sc=sg:Select(tp,1,1,nil)
end Duel.SendtoGrave(sc,REASON_EFFECT)
end end
end end
function c33878367.tgfilter(c,race,attr) end
return c:IsFaceup() and (c:IsRace(race) or c:IsAttribute(attr)) and c:IsAbleToGrave() function c33878367.tgfilter(c,race,attr)
end return c:IsFaceup() and (c:IsRace(race) or c:IsAttribute(attr)) and c:IsAbleToGrave()
function c33878367.thcon(e,tp,eg,ep,ev,re,r,rp) end
return e:GetHandler():IsReason(REASON_EFFECT) function c33878367.thcon(e,tp,eg,ep,ev,re,r,rp)
end return e:GetHandler():IsReason(REASON_EFFECT)
function c33878367.thfilter(c) end
return c:IsSetCard(0x181) and c:IsType(TYPE_TRAP) and c:IsFaceup() and c:IsAbleToHand() function c33878367.thfilter(c)
end return c:IsSetCard(0x181) and c:IsType(TYPE_TRAP) and c:IsFaceup() and c:IsAbleToHand()
function c33878367.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) end
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c33878367.thfilter(chkc) end function c33878367.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c33878367.thfilter,tp,LOCATION_REMOVED,0,1,nil) end if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c33878367.thfilter(chkc) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) if chk==0 then return Duel.IsExistingTarget(c33878367.thfilter,tp,LOCATION_REMOVED,0,1,nil) end
local g=Duel.SelectTarget(tp,c33878367.thfilter,tp,LOCATION_REMOVED,0,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0) local g=Duel.SelectTarget(tp,c33878367.thfilter,tp,LOCATION_REMOVED,0,1,1,nil)
end Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
function c33878367.thop(e,tp,eg,ep,ev,re,r,rp) end
local tc=Duel.GetFirstTarget() function c33878367.thop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then local tc=Duel.GetFirstTarget()
Duel.SendtoHand(tc,nil,REASON_EFFECT) if tc:IsRelateToEffect(e) then
end Duel.SendtoHand(tc,nil,REASON_EFFECT)
end end
end
--壱世壊に軋む爪音 --壱世壊に軋む爪音
function c38436986.initial_effect(c) function c38436986.initial_effect(c)
--Activate aux.AddCodeList(c,56099748)
local e1=Effect.CreateEffect(c) --Activate
e1:SetCategory(CATEGORY_POSITION+CATEGORY_TOGRAVE) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCategory(CATEGORY_POSITION+CATEGORY_TOGRAVE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,38436986) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e1:SetCountLimit(1,38436986)
e1:SetCondition(c38436986.condition) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetTarget(c38436986.target) e1:SetCondition(c38436986.condition)
e1:SetOperation(c38436986.activate) e1:SetTarget(c38436986.target)
c:RegisterEffect(e1) e1:SetOperation(c38436986.activate)
--to hand c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) --to hand
e2:SetCategory(CATEGORY_TOHAND) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetCategory(CATEGORY_TOHAND)
e2:SetCode(EVENT_TO_GRAVE) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_TO_GRAVE)
e2:SetCountLimit(1,38436986) e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e2:SetCondition(c38436986.thcon) e2:SetCountLimit(1,38436986)
e2:SetTarget(c38436986.thtg) e2:SetCondition(c38436986.thcon)
e2:SetOperation(c38436986.thop) e2:SetTarget(c38436986.thtg)
c:RegisterEffect(e2) e2:SetOperation(c38436986.thop)
end c:RegisterEffect(e2)
function c38436986.actcfilter(c) end
return ((c:IsSetCard(0x181) and c:IsLocation(LOCATION_MZONE)) or c:IsCode(56099748)) and c:IsFaceup() function c38436986.actcfilter(c)
end return ((c:IsSetCard(0x181) and c:IsLocation(LOCATION_MZONE)) or c:IsCode(56099748)) and c:IsFaceup()
function c38436986.condition(e,tp,eg,ep,ev,re,r,rp) end
return Duel.IsExistingMatchingCard(c38436986.actcfilter,tp,LOCATION_ONFIELD,0,1,nil) function c38436986.condition(e,tp,eg,ep,ev,re,r,rp)
end return Duel.IsExistingMatchingCard(c38436986.actcfilter,tp,LOCATION_ONFIELD,0,1,nil)
function c38436986.posfilter(c) end
return c:IsFaceup() and c:IsCanTurnSet() function c38436986.posfilter(c)
end return c:IsFaceup() and c:IsCanTurnSet()
function c38436986.tgfilter(c) end
return c:IsSetCard(0x181) and c:IsAbleToGrave() and c:IsType(TYPE_MONSTER) function c38436986.tgfilter(c)
end return c:IsSetCard(0x181) and c:IsAbleToGrave() and c:IsType(TYPE_MONSTER)
function c38436986.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) end
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c38436986.posfilter(chkc) end function c38436986.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c38436986.posfilter,tp,0,LOCATION_MZONE,1,nil) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c38436986.posfilter(chkc) end
and Duel.IsExistingMatchingCard(c38436986.tgfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(c38436986.posfilter,tp,0,LOCATION_MZONE,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) and Duel.IsExistingMatchingCard(c38436986.tgfilter,tp,LOCATION_DECK,0,1,nil) end
local g=Duel.SelectTarget(tp,c38436986.posfilter,tp,0,LOCATION_MZONE,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0) local g=Duel.SelectTarget(tp,c38436986.posfilter,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0)
end Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
function c38436986.activate(e,tp,eg,ep,ev,re,r,rp) end
local tc=Duel.GetFirstTarget() function c38436986.activate(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) and tc:IsFaceup() and Duel.ChangePosition(tc,POS_FACEDOWN_DEFENSE)>0 then local tc=Duel.GetFirstTarget()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) if tc:IsRelateToEffect(e) and tc:IsFaceup() and Duel.ChangePosition(tc,POS_FACEDOWN_DEFENSE)>0 then
local g=Duel.SelectMatchingCard(tp,c38436986.tgfilter,tp,LOCATION_DECK,0,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
if #g>0 then local g=Duel.SelectMatchingCard(tp,c38436986.tgfilter,tp,LOCATION_DECK,0,1,1,nil)
Duel.BreakEffect() if #g>0 then
Duel.SendtoGrave(g,REASON_EFFECT) Duel.BreakEffect()
end Duel.SendtoGrave(g,REASON_EFFECT)
end end
end end
function c38436986.thcon(e,tp,eg,ep,ev,re,r,rp) end
return e:GetHandler():IsReason(REASON_EFFECT) function c38436986.thcon(e,tp,eg,ep,ev,re,r,rp)
end return e:GetHandler():IsReason(REASON_EFFECT)
function c38436986.thfilter(c) end
return c:IsSetCard(0x181) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() function c38436986.thfilter(c)
end return c:IsSetCard(0x181) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
function c38436986.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) end
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c38436986.thfilter(chkc) end function c38436986.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c38436986.thfilter,tp,LOCATION_GRAVE,0,1,nil) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c38436986.thfilter(chkc) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) if chk==0 then return Duel.IsExistingTarget(c38436986.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
local g=Duel.SelectTarget(tp,c38436986.thfilter,tp,LOCATION_GRAVE,0,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0) local g=Duel.SelectTarget(tp,c38436986.thfilter,tp,LOCATION_GRAVE,0,1,1,nil)
end Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
function c38436986.thop(e,tp,eg,ep,ev,re,r,rp) end
local tc=Duel.GetFirstTarget() function c38436986.thop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then local tc=Duel.GetFirstTarget()
Duel.SendtoHand(tc,nil,REASON_EFFECT) if tc:IsRelateToEffect(e) then
end Duel.SendtoHand(tc,nil,REASON_EFFECT)
end end
end
--肆世壊からの天跨 --肆世壊からの天跨
function c41619242.initial_effect(c) function c41619242.initial_effect(c)
--atk up aux.AddCodeList(c,56099748)
local e1=Effect.CreateEffect(c) --atk up
e1:SetDescription(aux.Stringid(41619242,0)) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE) e1:SetDescription(aux.Stringid(41619242,0))
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(TIMING_DAMAGE_STEP) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCountLimit(1,41619242+EFFECT_COUNT_CODE_OATH) e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetCondition(aux.dscon) e1:SetCountLimit(1,41619242+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c41619242.atktg) e1:SetCondition(aux.dscon)
e1:SetOperation(c41619242.atkop) e1:SetTarget(c41619242.atktg)
c:RegisterEffect(e1) e1:SetOperation(c41619242.atkop)
--disable c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) --disable
e2:SetDescription(aux.Stringid(41619242,1)) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DISABLE) e2:SetDescription(aux.Stringid(41619242,1))
e2:SetType(EFFECT_TYPE_ACTIVATE) e2:SetCategory(CATEGORY_DISABLE)
e2:SetCode(EVENT_CHAINING) e2:SetType(EFFECT_TYPE_ACTIVATE)
e2:SetCountLimit(1,41619242+EFFECT_COUNT_CODE_OATH) e2:SetCode(EVENT_CHAINING)
e2:SetCondition(c41619242.discon) e2:SetCountLimit(1,41619242+EFFECT_COUNT_CODE_OATH)
e2:SetTarget(c41619242.distg) e2:SetCondition(c41619242.discon)
e2:SetOperation(c41619242.disop) e2:SetTarget(c41619242.distg)
c:RegisterEffect(e2) e2:SetOperation(c41619242.disop)
end c:RegisterEffect(e2)
function c41619242.atkfilter(c) end
return c:IsSetCard(0x17a) or c:IsCode(56099748) function c41619242.atkfilter(c)
end return c:IsSetCard(0x17a) or c:IsCode(56099748)
function c41619242.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) end
if chkc then return false end function c41619242.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c41619242.atkfilter,tp,LOCATION_MZONE,0,1,nil) if chkc then return false end
and Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(c41619242.atkfilter,tp,LOCATION_MZONE,0,1,nil)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) and Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
local g1=Duel.SelectTarget(tp,c41619242.atkfilter,tp,LOCATION_MZONE,0,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) local g1=Duel.SelectTarget(tp,c41619242.atkfilter,tp,LOCATION_MZONE,0,1,1,nil)
local g2=Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
g1:Merge(g2) local g2=Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil)
end g1:Merge(g2)
function c41619242.atkop(e,tp,eg,ep,ev,re,r,rp) end
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) function c41619242.atkop(e,tp,eg,ep,ev,re,r,rp)
local tg=g:Filter(Card.IsRelateToEffect,nil,e) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
if tg:GetCount()<2 then return end local tg=g:Filter(Card.IsRelateToEffect,nil,e)
local sc1=tg:Filter(Card.IsControler,nil,tp):GetFirst() if tg:GetCount()<2 then return end
local sc2=tg:Filter(Card.IsControler,nil,1-tp):GetFirst() local sc1=tg:Filter(Card.IsControler,nil,tp):GetFirst()
if not sc1 or not sc2 then return end local sc2=tg:Filter(Card.IsControler,nil,1-tp):GetFirst()
local e1=Effect.CreateEffect(e:GetHandler()) if not sc1 or not sc2 then return end
e1:SetType(EFFECT_TYPE_SINGLE) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetValue(math.max(sc2:GetAttack(),sc2:GetDefense())) e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetValue(math.max(sc2:GetAttack(),sc2:GetDefense()))
sc1:RegisterEffect(e1) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
local e2=e1:Clone() sc1:RegisterEffect(e1)
e2:SetCode(EFFECT_UPDATE_DEFENSE) local e2=e1:Clone()
sc1:RegisterEffect(e2) e2:SetCode(EFFECT_UPDATE_DEFENSE)
end sc1:RegisterEffect(e2)
function c41619242.disfilter(c,tp) end
return (c:IsSetCard(0x17a) or c:IsCode(56099748)) function c41619242.disfilter(c,tp)
and c:IsLocation(LOCATION_MZONE) and c:IsFaceup() and c:IsControler(tp) return (c:IsSetCard(0x17a) or c:IsCode(56099748))
end and c:IsLocation(LOCATION_MZONE) and c:IsFaceup() and c:IsControler(tp)
function c41619242.discon(e,tp,eg,ep,ev,re,r,rp) end
if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return false end function c41619242.discon(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return false end
return g and g:IsExists(c41619242.disfilter,1,nil,tp) and Duel.IsChainDisablable(ev) local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
end return g and g:IsExists(c41619242.disfilter,1,nil,tp) and Duel.IsChainDisablable(ev)
function c41619242.distg(e,tp,eg,ep,ev,re,r,rp,chk) end
if chk==0 then return true end function c41619242.distg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DISABLE,eg,1,0,0) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end Duel.SetOperationInfo(0,CATEGORY_DISABLE,eg,1,0,0)
function c41619242.disop(e,tp,eg,ep,ev,re,r,rp) end
Duel.NegateEffect(ev) function c41619242.disop(e,tp,eg,ep,ev,re,r,rp)
end Duel.NegateEffect(ev)
end
--スケアクロー・ライトハート --スケアクロー・ライトハート
function c53776969.initial_effect(c) function c53776969.initial_effect(c)
--link summon aux.AddCodeList(c,56099748)
aux.AddLinkProcedure(c,c53776969.mfilter,1,1) --link summon
c:EnableReviveLimit() aux.AddLinkProcedure(c,c53776969.mfilter,1,1)
--to hand c:EnableReviveLimit()
local e1=Effect.CreateEffect(c) --to hand
e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(c53776969.thcon) e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetTarget(c53776969.thtg) e1:SetCondition(c53776969.thcon)
e1:SetOperation(c53776969.thop) e1:SetTarget(c53776969.thtg)
c:RegisterEffect(e1) e1:SetOperation(c53776969.thop)
--spsummon c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) --spsummon
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetRange(LOCATION_GRAVE) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCountLimit(1,53776969+EFFECT_COUNT_CODE_DUEL) e2:SetRange(LOCATION_GRAVE)
e2:SetCondition(c53776969.spcon) e2:SetCountLimit(1,53776969+EFFECT_COUNT_CODE_DUEL)
e2:SetTarget(c53776969.sptg) e2:SetCondition(c53776969.spcon)
e2:SetOperation(c53776969.spop) e2:SetTarget(c53776969.sptg)
c:RegisterEffect(e2) e2:SetOperation(c53776969.spop)
end c:RegisterEffect(e2)
function c53776969.mfilter(c) end
return (c:IsLinkSetCard(0x17a) or c:IsLinkCode(56099748)) function c53776969.mfilter(c)
and (c:IsLocation(LOCATION_MZONE) and c:GetSequence()<5 or not c:IsLocation(LOCATION_MZONE)) return (c:IsLinkSetCard(0x17a) or c:IsLinkCode(56099748))
end and (c:IsLocation(LOCATION_MZONE) and c:GetSequence()<5 or not c:IsLocation(LOCATION_MZONE))
function c53776969.thcon(e,tp,eg,ep,ev,re,r,rp) end
local c=e:GetHandler() function c53776969.thcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsSummonType(SUMMON_TYPE_LINK) and c:GetSequence()>4 local c=e:GetHandler()
end return c:IsSummonType(SUMMON_TYPE_LINK) and c:GetSequence()>4
function c53776969.thfilter(c) end
return c:IsCode(56063182) and c:IsAbleToHand() function c53776969.thfilter(c)
end return c:IsCode(56063182) and c:IsAbleToHand()
function c53776969.thtg(e,tp,eg,ep,ev,re,r,rp,chk) end
if chk==0 then return Duel.IsExistingMatchingCard(c53776969.thfilter,tp,LOCATION_DECK,0,1,nil) end function c53776969.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) if chk==0 then return Duel.IsExistingMatchingCard(c53776969.thfilter,tp,LOCATION_DECK,0,1,nil) end
end Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
function c53776969.thop(e,tp,eg,ep,ev,re,r,rp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) function c53776969.thop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c53776969.thfilter,tp,LOCATION_DECK,0,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
if g:GetCount()>0 then local g=Duel.SelectMatchingCard(tp,c53776969.thfilter,tp,LOCATION_DECK,0,1,1,nil)
Duel.SendtoHand(g,nil,REASON_EFFECT) if g:GetCount()>0 then
Duel.ConfirmCards(1-tp,g) Duel.SendtoHand(g,nil,REASON_EFFECT)
end Duel.ConfirmCards(1-tp,g)
end end
function c53776969.filter(c) end
return c:IsCode(56099748) and c:IsFaceup() function c53776969.filter(c)
end return c:IsCode(56099748) and c:IsFaceup()
function c53776969.spcon(e,tp,eg,ep,ev,re,r,rp) end
return Duel.IsExistingMatchingCard(c53776969.filter,tp,LOCATION_ONFIELD,0,1,nil) function c53776969.spcon(e,tp,eg,ep,ev,re,r,rp)
end return Duel.IsExistingMatchingCard(c53776969.filter,tp,LOCATION_ONFIELD,0,1,nil)
function c53776969.sptg(e,tp,eg,ep,ev,re,r,rp,chk) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 function c53776969.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
function c53776969.spop(e,tp,eg,ep,ev,re,r,rp) end
local c=e:GetHandler() function c53776969.spop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) then local c=e:GetHandler()
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) if c:IsRelateToEffect(e) then
end Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end end
end
--肆世壊=ライフォビア --肆世壊=ライフォビア
local s,id,o=GetID() local s,id,o=GetID()
function c56063182.initial_effect(c) function c56063182.initial_effect(c)
--Activate aux.AddCodeList(c,56099748)
local e1=Effect.CreateEffect(c) --Activate
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCountLimit(1,56063182+EFFECT_COUNT_CODE_OATH) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetOperation(c56063182.activate) e1:SetCountLimit(1,56063182+EFFECT_COUNT_CODE_OATH)
c:RegisterEffect(e1) e1:SetOperation(c56063182.activate)
--Decrease Atk c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) --Decrease Atk
e2:SetCategory(CATEGORY_ATKCHANGE) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetCategory(CATEGORY_ATKCHANGE)
e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetRange(LOCATION_FZONE) e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetTargetRange(0,LOCATION_MZONE) e2:SetRange(LOCATION_FZONE)
e2:SetValue(c56063182.atkval) e2:SetTargetRange(0,LOCATION_MZONE)
c:RegisterEffect(e2) e2:SetValue(c56063182.atkval)
--Decrease Atk c:RegisterEffect(e2)
local e3=e2:Clone() --Decrease Atk
e3:SetCode(EFFECT_UPDATE_DEFENSE) local e3=e2:Clone()
c:RegisterEffect(e3) e3:SetCode(EFFECT_UPDATE_DEFENSE)
--destroy1 c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c) --destroy1
e4:SetDescription(aux.Stringid(56063182,1)) local e4=Effect.CreateEffect(c)
e4:SetCategory(CATEGORY_DESTROY) e4:SetDescription(aux.Stringid(56063182,1))
e4:SetType(EFFECT_TYPE_IGNITION) e4:SetCategory(CATEGORY_DESTROY)
e4:SetProperty(EFFECT_FLAG_CARD_TARGET) e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetRange(LOCATION_FZONE) e4:SetProperty(EFFECT_FLAG_CARD_TARGET)
e4:SetCountLimit(1,56063182+o) e4:SetRange(LOCATION_FZONE)
e4:SetCondition(c56063182.descon) e4:SetCountLimit(1,56063182+o)
e4:SetTarget(c56063182.destg) e4:SetCondition(c56063182.descon)
e4:SetOperation(c56063182.desop) e4:SetTarget(c56063182.destg)
c:RegisterEffect(e4) e4:SetOperation(c56063182.desop)
end c:RegisterEffect(e4)
function c56063182.filter(c) end
return ((c:IsSetCard(0x17a) and c:IsType(TYPE_MONSTER)) or c:IsCode(56099748)) and c:IsAbleToHand() function c56063182.filter(c)
end return ((c:IsSetCard(0x17a) and c:IsType(TYPE_MONSTER)) or c:IsCode(56099748)) and c:IsAbleToHand()
function c56063182.activate(e,tp,eg,ep,ev,re,r,rp) end
local g=Duel.GetMatchingGroup(c56063182.filter,tp,LOCATION_DECK,0,nil) function c56063182.activate(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(56063182,0)) then local g=Duel.GetMatchingGroup(c56063182.filter,tp,LOCATION_DECK,0,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(56063182,0)) then
local sg=g:Select(tp,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
Duel.SendtoHand(sg,nil,REASON_EFFECT) local sg=g:Select(tp,1,1,nil)
Duel.ConfirmCards(1-tp,sg) Duel.SendtoHand(sg,nil,REASON_EFFECT)
end Duel.ConfirmCards(1-tp,sg)
end end
function c56063182.atkval(e) end
return Duel.GetMatchingGroupCount(Card.IsDefensePos,e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,nil)*-100 function c56063182.atkval(e)
end return Duel.GetMatchingGroupCount(Card.IsDefensePos,e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,nil)*-100
function c56063182.descon(e,tp,eg,ep,ev,re,r,rp) end
return Duel.GetMatchingGroupCount(Card.IsDefensePos,tp,LOCATION_MZONE,LOCATION_MZONE,nil)>=3 function c56063182.descon(e,tp,eg,ep,ev,re,r,rp)
end return Duel.GetMatchingGroupCount(Card.IsDefensePos,tp,LOCATION_MZONE,LOCATION_MZONE,nil)>=3
function c56063182.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) end
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) end function c56063182.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end
local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil)
end Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
function c56063182.desop(e,tp,eg,ep,ev,re,r,rp) end
local tc=Duel.GetFirstTarget() function c56063182.desop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then local tc=Duel.GetFirstTarget()
Duel.Destroy(tc,REASON_EFFECT) if tc:IsRelateToEffect(e) then
end Duel.Destroy(tc,REASON_EFFECT)
end end
end
--壱世壊を揺るがす鼓動 --壱世壊を揺るがす鼓動
function c60362066.initial_effect(c) function c60362066.initial_effect(c)
--to deck aux.AddCodeList(c,56099748)
local e1=Effect.CreateEffect(c) --to deck
e1:SetCategory(CATEGORY_TODECK+CATEGORY_TOGRAVE) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCategory(CATEGORY_TODECK+CATEGORY_TOGRAVE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,60362066) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c60362066.tdtg) e1:SetCountLimit(1,60362066)
e1:SetOperation(c60362066.tdop) e1:SetTarget(c60362066.tdtg)
c:RegisterEffect(e1) e1:SetOperation(c60362066.tdop)
--to hand c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) --to hand
e2:SetCategory(CATEGORY_TOHAND) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetCategory(CATEGORY_TOHAND)
e2:SetCode(EVENT_TO_GRAVE) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_TO_GRAVE)
e2:SetCountLimit(1,60362066) e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e2:SetCondition(c60362066.thcon) e2:SetCountLimit(1,60362066)
e2:SetTarget(c60362066.thtg) e2:SetCondition(c60362066.thcon)
e2:SetOperation(c60362066.thop) e2:SetTarget(c60362066.thtg)
c:RegisterEffect(e2) e2:SetOperation(c60362066.thop)
end c:RegisterEffect(e2)
function c60362066.filter(c) end
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToDeck() function c60362066.filter(c)
end return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToDeck()
function c60362066.cfilter(c) end
return c:IsCode(56099748) and c:IsFaceup() function c60362066.cfilter(c)
end return c:IsCode(56099748) and c:IsFaceup()
function c60362066.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) end
if chkc then return chkc:IsOnField() and c60362066.filter(chkc) and chkc~=e:GetHandler() end function c60362066.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c60362066.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler()) if chkc then return chkc:IsOnField() and c60362066.filter(chkc) and chkc~=e:GetHandler() end
and Duel.IsExistingMatchingCard(Card.IsAbleToGrave,tp,LOCATION_HAND,0,1,e:GetHandler()) end if chk==0 then return Duel.IsExistingTarget(c60362066.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler())
local ct=1 and Duel.IsExistingMatchingCard(Card.IsAbleToGrave,tp,LOCATION_HAND,0,1,e:GetHandler()) end
if Duel.IsExistingMatchingCard(c60362066.cfilter,tp,LOCATION_ONFIELD,0,1,nil) then ct=2 end local ct=1
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) if Duel.IsExistingMatchingCard(c60362066.cfilter,tp,LOCATION_ONFIELD,0,1,nil) then ct=2 end
local g=Duel.SelectTarget(tp,c60362066.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,ct,e:GetHandler()) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,#g,0,0) local g=Duel.SelectTarget(tp,c60362066.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,ct,e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,1,nil,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_TODECK,g,#g,0,0)
end Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,1,nil,tp,LOCATION_HAND)
function c60362066.tdop(e,tp,eg,ep,ev,re,r,rp) end
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e) function c60362066.tdop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 and Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)>0 local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
and g:FilterCount(Card.IsLocation,nil,LOCATION_DECK+LOCATION_EXTRA)~=0 then if g:GetCount()>0 and Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)>0
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) and g:FilterCount(Card.IsLocation,nil,LOCATION_DECK+LOCATION_EXTRA)~=0 then
local sg=Duel.SelectMatchingCard(tp,Card.IsAbleToGrave,tp,LOCATION_HAND,0,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
if #sg>0 then local sg=Duel.SelectMatchingCard(tp,Card.IsAbleToGrave,tp,LOCATION_HAND,0,1,1,nil)
Duel.BreakEffect() if #sg>0 then
Duel.SendtoGrave(sg,REASON_EFFECT) Duel.BreakEffect()
end Duel.SendtoGrave(sg,REASON_EFFECT)
end end
end end
function c60362066.thcon(e,tp,eg,ep,ev,re,r,rp) end
return e:GetHandler():IsReason(REASON_EFFECT) function c60362066.thcon(e,tp,eg,ep,ev,re,r,rp)
end return e:GetHandler():IsReason(REASON_EFFECT)
function c60362066.thfilter(c) end
return c:IsSetCard(0x181) and c:IsType(TYPE_TRAP) and c:IsAbleToHand() function c60362066.thfilter(c)
end return c:IsSetCard(0x181) and c:IsType(TYPE_TRAP) and c:IsAbleToHand()
function c60362066.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) end
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c60362066.thfilter(chkc) end function c60362066.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c60362066.thfilter,tp,LOCATION_GRAVE,0,1,nil) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c60362066.thfilter(chkc) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) if chk==0 then return Duel.IsExistingTarget(c60362066.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
local g=Duel.SelectTarget(tp,c60362066.thfilter,tp,LOCATION_GRAVE,0,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0) local g=Duel.SelectTarget(tp,c60362066.thfilter,tp,LOCATION_GRAVE,0,1,1,nil)
end Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
function c60362066.thop(e,tp,eg,ep,ev,re,r,rp) end
local tc=Duel.GetFirstTarget() function c60362066.thop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then local tc=Duel.GetFirstTarget()
Duel.SendtoHand(tc,nil,REASON_EFFECT) if tc:IsRelateToEffect(e) then
end Duel.SendtoHand(tc,nil,REASON_EFFECT)
end end
end
--壱世壊を劈く弦声 --壱世壊を劈く弦声
function c6767771.initial_effect(c) function c6767771.initial_effect(c)
--activate aux.AddCodeList(c,56099748)
local e1=Effect.CreateEffect(c) --activate
e1:SetType(EFFECT_TYPE_ACTIVATE) local e1=Effect.CreateEffect(c)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetType(EFFECT_TYPE_ACTIVATE)
c:RegisterEffect(e1) e1:SetCode(EVENT_FREE_CHAIN)
--to grave c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) --to grave
e2:SetCategory(CATEGORY_DECKDES) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetCategory(CATEGORY_DECKDES)
e2:SetCode(EVENT_SUMMON_SUCCESS) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetRange(LOCATION_SZONE) e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetRange(LOCATION_SZONE)
e2:SetCountLimit(1,6767771) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetTarget(c6767771.distg) e2:SetCountLimit(1,6767771)
e2:SetOperation(c6767771.disop) e2:SetTarget(c6767771.distg)
c:RegisterEffect(e2) e2:SetOperation(c6767771.disop)
local e3=e2:Clone() c:RegisterEffect(e2)
e3:SetCode(EVENT_SPSUMMON_SUCCESS) local e3=e2:Clone()
c:RegisterEffect(e3) e3:SetCode(EVENT_SPSUMMON_SUCCESS)
--to hand c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c) --to hand
e4:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e4:SetCode(EVENT_TO_GRAVE) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetProperty(EFFECT_FLAG_DELAY) e4:SetCode(EVENT_TO_GRAVE)
e4:SetCountLimit(1,6767772) e4:SetProperty(EFFECT_FLAG_DELAY)
e4:SetCondition(c6767771.thcon) e4:SetCountLimit(1,6767772)
e4:SetTarget(c6767771.thtg) e4:SetCondition(c6767771.thcon)
e4:SetOperation(c6767771.thop) e4:SetTarget(c6767771.thtg)
c:RegisterEffect(e4) e4:SetOperation(c6767771.thop)
end c:RegisterEffect(e4)
function c6767771.disfilter(c) end
return ((c:IsSetCard(0x181) and c:IsLocation(LOCATION_MZONE)) or c:IsCode(56099748)) and c:IsFaceup() function c6767771.disfilter(c)
end return ((c:IsSetCard(0x181) and c:IsLocation(LOCATION_MZONE)) or c:IsCode(56099748)) and c:IsFaceup()
function c6767771.distg(e,tp,eg,ep,ev,re,r,rp,chk) end
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,3) function c6767771.distg(e,tp,eg,ep,ev,re,r,rp,chk)
and Duel.IsExistingMatchingCard(c6767771.disfilter,tp,LOCATION_ONFIELD,0,1,nil) end if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,3)
Duel.SetTargetPlayer(tp) and Duel.IsExistingMatchingCard(c6767771.disfilter,tp,LOCATION_ONFIELD,0,1,nil) end
Duel.SetTargetParam(3) Duel.SetTargetPlayer(tp)
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,3) Duel.SetTargetParam(3)
end Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,3)
function c6767771.disop(e,tp,eg,ep,ev,re,r,rp) end
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) function c6767771.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.DiscardDeck(p,d,REASON_EFFECT) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
local e1=Effect.CreateEffect(e:GetHandler()) Duel.DiscardDeck(p,d,REASON_EFFECT)
e1:SetType(EFFECT_TYPE_FIELD) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetTargetRange(0,LOCATION_MZONE) e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(-500) e1:SetTargetRange(0,LOCATION_MZONE)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetValue(-500)
Duel.RegisterEffect(e1,tp) e1:SetReset(RESET_PHASE+PHASE_END)
end Duel.RegisterEffect(e1,tp)
function c6767771.thcon(e,tp,eg,ep,ev,re,r,rp) end
return e:GetHandler():IsReason(REASON_EFFECT) function c6767771.thcon(e,tp,eg,ep,ev,re,r,rp)
end return e:GetHandler():IsReason(REASON_EFFECT)
function c6767771.thfilter(c) end
return c:IsSetCard(0x181) and c:IsType(TYPE_TRAP) and c:IsAbleToHand() function c6767771.thfilter(c)
end return c:IsSetCard(0x181) and c:IsType(TYPE_TRAP) and c:IsAbleToHand()
function c6767771.thtg(e,tp,eg,ep,ev,re,r,rp,chk) end
if chk==0 then return Duel.IsExistingMatchingCard(c6767771.thfilter,tp,LOCATION_DECK,0,1,nil) end function c6767771.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) if chk==0 then return Duel.IsExistingMatchingCard(c6767771.thfilter,tp,LOCATION_DECK,0,1,nil) end
end Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
function c6767771.thop(e,tp,eg,ep,ev,re,r,rp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) function c6767771.thop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c6767771.thfilter,tp,LOCATION_DECK,0,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
if #g>0 then local g=Duel.SelectMatchingCard(tp,c6767771.thfilter,tp,LOCATION_DECK,0,1,1,nil)
Duel.SendtoHand(g,nil,REASON_EFFECT) if #g>0 then
Duel.ConfirmCards(1-tp,g) Duel.SendtoHand(g,nil,REASON_EFFECT)
end Duel.ConfirmCards(1-tp,g)
end end
end
--壱世壊に奏でる哀唱 --壱世壊に奏でる哀唱
function c74920585.initial_effect(c) function c74920585.initial_effect(c)
--Activate aux.AddCodeList(c,56099748)
local e1=Effect.CreateEffect(c) --Activate
e1:SetType(EFFECT_TYPE_ACTIVATE) local e1=Effect.CreateEffect(c)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetType(EFFECT_TYPE_ACTIVATE)
c:RegisterEffect(e1) e1:SetCode(EVENT_FREE_CHAIN)
--quick c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) --quick
e2:SetDescription(aux.Stringid(74920585,0)) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DISABLE+CATEGORY_TOGRAVE) e2:SetDescription(aux.Stringid(74920585,0))
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCategory(CATEGORY_DISABLE+CATEGORY_TOGRAVE)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetRange(LOCATION_SZONE) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e2:SetRange(LOCATION_SZONE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e2:SetCountLimit(1,74920585) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCondition(c74920585.condition) e2:SetCountLimit(1,74920585)
e2:SetTarget(c74920585.target) e2:SetCondition(c74920585.condition)
e2:SetOperation(c74920585.activate) e2:SetTarget(c74920585.target)
c:RegisterEffect(e2) e2:SetOperation(c74920585.activate)
--to hand c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c) --to hand
e3:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e3:SetCode(EVENT_TO_GRAVE) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetCode(EVENT_TO_GRAVE)
e3:SetCountLimit(1,74920586) e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCondition(c74920585.thcon) e3:SetCountLimit(1,74920586)
e3:SetTarget(c74920585.thtg) e3:SetCondition(c74920585.thcon)
e3:SetOperation(c74920585.thop) e3:SetTarget(c74920585.thtg)
c:RegisterEffect(e3) e3:SetOperation(c74920585.thop)
end c:RegisterEffect(e3)
function c74920585.actcfilter(c) end
return ((c:IsSetCard(0x181) and c:IsLocation(LOCATION_MZONE)) or c:IsCode(56099748)) and c:IsFaceup() function c74920585.actcfilter(c)
end return ((c:IsSetCard(0x181) and c:IsLocation(LOCATION_MZONE)) or c:IsCode(56099748)) and c:IsFaceup()
function c74920585.condition(e,tp,eg,ep,ev,re,r,rp) end
return Duel.IsExistingMatchingCard(c74920585.actcfilter,tp,LOCATION_ONFIELD,0,1,nil) function c74920585.condition(e,tp,eg,ep,ev,re,r,rp)
end return Duel.IsExistingMatchingCard(c74920585.actcfilter,tp,LOCATION_ONFIELD,0,1,nil)
function c74920585.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) end
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and aux.NegateEffectMonsterFilter(chkc) end function c74920585.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(aux.NegateEffectMonsterFilter,tp,0,LOCATION_MZONE,1,nil) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and aux.NegateEffectMonsterFilter(chkc) end
and Duel.IsExistingMatchingCard(Card.IsAbleToGrave,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(aux.NegateEffectMonsterFilter,tp,0,LOCATION_MZONE,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE) and Duel.IsExistingMatchingCard(Card.IsAbleToGrave,tp,LOCATION_MZONE,0,1,nil) end
Duel.SelectTarget(tp,aux.NegateEffectMonsterFilter,tp,0,LOCATION_MZONE,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_MZONE) Duel.SelectTarget(tp,aux.NegateEffectMonsterFilter,tp,0,LOCATION_MZONE,1,1,nil)
end Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_MZONE)
function c74920585.activate(e,tp,eg,ep,ev,re,r,rp) end
local c=e:GetHandler() function c74920585.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local c=e:GetHandler()
if tc:IsFaceup() and tc:IsRelateToEffect(e) and tc:IsCanBeDisabledByEffect(e) then local tc=Duel.GetFirstTarget()
Duel.NegateRelatedChain(tc,RESET_TURN_SET) if tc:IsFaceup() and tc:IsRelateToEffect(e) and tc:IsCanBeDisabledByEffect(e) then
local e1=Effect.CreateEffect(c) Duel.NegateRelatedChain(tc,RESET_TURN_SET)
e1:SetType(EFFECT_TYPE_SINGLE) local e1=Effect.CreateEffect(c)
e1:SetCode(EFFECT_DISABLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetCode(EFFECT_DISABLE)
tc:RegisterEffect(e1) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
local e2=Effect.CreateEffect(c) tc:RegisterEffect(e1)
e2:SetType(EFFECT_TYPE_SINGLE) local e2=Effect.CreateEffect(c)
e2:SetCode(EFFECT_DISABLE_EFFECT) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetValue(RESET_TURN_SET) e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetValue(RESET_TURN_SET)
tc:RegisterEffect(e2) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
Duel.AdjustInstantly() tc:RegisterEffect(e2)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.AdjustInstantly()
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToGrave,tp,LOCATION_MZONE,0,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
if #g>0 then local g=Duel.SelectMatchingCard(tp,Card.IsAbleToGrave,tp,LOCATION_MZONE,0,1,1,nil)
Duel.BreakEffect() if #g>0 then
Duel.SendtoGrave(g,REASON_EFFECT) Duel.BreakEffect()
end Duel.SendtoGrave(g,REASON_EFFECT)
end end
end end
function c74920585.thcon(e,tp,eg,ep,ev,re,r,rp) end
return e:GetHandler():IsReason(REASON_EFFECT) function c74920585.thcon(e,tp,eg,ep,ev,re,r,rp)
end return e:GetHandler():IsReason(REASON_EFFECT)
function c74920585.thfilter(c) end
return c:IsSetCard(0x181) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() function c74920585.thfilter(c)
end return c:IsSetCard(0x181) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
function c74920585.thtg(e,tp,eg,ep,ev,re,r,rp,chk) end
if chk==0 then return Duel.IsExistingMatchingCard(c74920585.thfilter,tp,LOCATION_DECK,0,1,nil) end function c74920585.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) if chk==0 then return Duel.IsExistingMatchingCard(c74920585.thfilter,tp,LOCATION_DECK,0,1,nil) end
end Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
function c74920585.thop(e,tp,eg,ep,ev,re,r,rp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) function c74920585.thop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c74920585.thfilter,tp,LOCATION_DECK,0,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
if #g>0 then local g=Duel.SelectMatchingCard(tp,c74920585.thfilter,tp,LOCATION_DECK,0,1,1,nil)
Duel.SendtoHand(g,nil,REASON_EFFECT) if #g>0 then
Duel.ConfirmCards(1-tp,g) Duel.SendtoHand(g,nil,REASON_EFFECT)
end Duel.ConfirmCards(1-tp,g)
end end
end
--壱世壊=ペルレイノ --壱世壊=ペルレイノ
function c77103950.initial_effect(c) function c77103950.initial_effect(c)
--Activate aux.AddCodeList(c,56099748)
local e1=Effect.CreateEffect(c) --Activate
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCountLimit(1,77103950+EFFECT_COUNT_CODE_OATH) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetOperation(c77103950.activate) e1:SetCountLimit(1,77103950+EFFECT_COUNT_CODE_OATH)
c:RegisterEffect(e1) e1:SetOperation(c77103950.activate)
--atk c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) --atk
e2:SetType(EFFECT_TYPE_FIELD) local e2=Effect.CreateEffect(c)
e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetRange(LOCATION_FZONE) e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetTargetRange(LOCATION_MZONE,0) e2:SetRange(LOCATION_FZONE)
e2:SetTarget(c77103950.atktg) e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetValue(500) e2:SetTarget(c77103950.atktg)
c:RegisterEffect(e2) e2:SetValue(500)
--destroy c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c) --destroy
e3:SetDescription(aux.Stringid(77103950,1)) local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_DESTROY) e3:SetDescription(aux.Stringid(77103950,1))
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetCategory(CATEGORY_DESTROY)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetRange(LOCATION_FZONE) e3:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e3:SetCountLimit(1,77103951) e3:SetRange(LOCATION_FZONE)
e3:SetCode(EVENT_TO_DECK) e3:SetCountLimit(1,77103951)
e3:SetCondition(c77103950.descon) e3:SetCode(EVENT_TO_DECK)
e3:SetTarget(c77103950.destg) e3:SetCondition(c77103950.descon)
e3:SetOperation(c77103950.desop) e3:SetTarget(c77103950.destg)
c:RegisterEffect(e3) e3:SetOperation(c77103950.desop)
end c:RegisterEffect(e3)
function c77103950.filter(c) end
return ((c:IsSetCard(0x181) and c:IsType(TYPE_MONSTER)) or c:IsCode(56099748)) and c:IsAbleToHand() function c77103950.filter(c)
end return ((c:IsSetCard(0x181) and c:IsType(TYPE_MONSTER)) or c:IsCode(56099748)) and c:IsAbleToHand()
function c77103950.activate(e,tp,eg,ep,ev,re,r,rp) end
local g=Duel.GetMatchingGroup(c77103950.filter,tp,LOCATION_DECK,0,nil) function c77103950.activate(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(77103950,0)) then local g=Duel.GetMatchingGroup(c77103950.filter,tp,LOCATION_DECK,0,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(77103950,0)) then
local sg=g:Select(tp,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
Duel.SendtoHand(sg,nil,REASON_EFFECT) local sg=g:Select(tp,1,1,nil)
Duel.ConfirmCards(1-tp,sg) Duel.SendtoHand(sg,nil,REASON_EFFECT)
end Duel.ConfirmCards(1-tp,sg)
end end
function c77103950.atktg(e,c) end
return c:IsType(TYPE_FUSION) or c:IsSetCard(0x181) function c77103950.atktg(e,c)
end return c:IsType(TYPE_FUSION) or c:IsSetCard(0x181)
function c77103950.cfilter(c,tp) end
return c:IsPreviousControler(tp) and c:IsSetCard(0x181) and c:IsType(TYPE_MONSTER) function c77103950.cfilter(c,tp)
and (c:IsPreviousLocation(LOCATION_GRAVE) return c:IsPreviousControler(tp) and c:IsSetCard(0x181) and c:IsType(TYPE_MONSTER)
or (c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousSetCard(0x181))) and (c:IsPreviousLocation(LOCATION_GRAVE)
end or (c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousSetCard(0x181)))
function c77103950.descon(e,tp,eg,ep,ev,re,r,rp) end
return eg:IsExists(c77103950.cfilter,1,nil,tp) function c77103950.descon(e,tp,eg,ep,ev,re,r,rp)
end return eg:IsExists(c77103950.cfilter,1,nil,tp)
function c77103950.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) end
if chkc then return chkc:IsOnField() end function c77103950.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end if chkc then return chkc:IsOnField() end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) if chk==0 then return Duel.IsExistingTarget(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
local g=Duel.SelectTarget(tp,nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) local g=Duel.SelectTarget(tp,nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
end Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
function c77103950.desop(e,tp,eg,ep,ev,re,r,rp) end
local tc=Duel.GetFirstTarget() function c77103950.desop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then local tc=Duel.GetFirstTarget()
Duel.Destroy(tc,REASON_EFFECT) if tc:IsRelateToEffect(e) then
end Duel.Destroy(tc,REASON_EFFECT)
end end
end
--肆世壊の牙掌突 --肆世壊の牙掌突
function c79552283.initial_effect(c) function c79552283.initial_effect(c)
--Activate aux.AddCodeList(c,56099748)
local e1=Effect.CreateEffect(c) --Activate
e1:SetType(EFFECT_TYPE_ACTIVATE) local e1=Effect.CreateEffect(c)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetType(EFFECT_TYPE_ACTIVATE)
c:RegisterEffect(e1) e1:SetCode(EVENT_FREE_CHAIN)
--able to be DefensePos attack c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) --able to be DefensePos attack
e2:SetDescription(aux.Stringid(79552283,0)) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetDescription(aux.Stringid(79552283,0))
e2:SetRange(LOCATION_SZONE) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetRange(LOCATION_SZONE)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCountLimit(1) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetTarget(c79552283.adatktg) e2:SetCountLimit(1)
e2:SetOperation(c79552283.adatkop) e2:SetTarget(c79552283.adatktg)
c:RegisterEffect(e2) e2:SetOperation(c79552283.adatkop)
--negate c:RegisterEffect(e2)
local e4=Effect.CreateEffect(c) --negate
e4:SetDescription(aux.Stringid(79552283,1)) local e4=Effect.CreateEffect(c)
e4:SetCategory(CATEGORY_DISABLE) e4:SetDescription(aux.Stringid(79552283,1))
e4:SetType(EFFECT_TYPE_QUICK_O) e4:SetCategory(CATEGORY_DISABLE)
e4:SetCode(EVENT_CHAINING) e4:SetType(EFFECT_TYPE_QUICK_O)
e4:SetRange(LOCATION_SZONE) e4:SetCode(EVENT_CHAINING)
e4:SetCountLimit(1,79552283) e4:SetRange(LOCATION_SZONE)
e4:SetCondition(c79552283.discon) e4:SetCountLimit(1,79552283)
e4:SetCost(c79552283.discost) e4:SetCondition(c79552283.discon)
e4:SetTarget(c79552283.distg) e4:SetCost(c79552283.discost)
e4:SetOperation(c79552283.disop) e4:SetTarget(c79552283.distg)
c:RegisterEffect(e4) e4:SetOperation(c79552283.disop)
end c:RegisterEffect(e4)
function c79552283.filter(c,e,tp) end
return (c:IsSetCard(0x17a) or c:IsCode(56099748)) and c:IsFaceup() and not c:IsType(TYPE_LINK) function c79552283.filter(c,e,tp)
end return (c:IsSetCard(0x17a) or c:IsCode(56099748)) and c:IsFaceup() and not c:IsType(TYPE_LINK)
function c79552283.adatktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) end
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c79552283.filter(chkc,e,tp) end function c79552283.adatktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c79552283.filter,tp,LOCATION_MZONE,0,1,nil,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c79552283.filter(chkc,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) if chk==0 then return Duel.IsExistingTarget(c79552283.filter,tp,LOCATION_MZONE,0,1,nil,e,tp) end
Duel.SelectTarget(tp,c79552283.filter,tp,LOCATION_MZONE,0,1,1,nil,e,tp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
end Duel.SelectTarget(tp,c79552283.filter,tp,LOCATION_MZONE,0,1,1,nil,e,tp)
function c79552283.adatkop(e,tp,eg,ep,ev,re,r,rp) end
local tc=Duel.GetFirstTarget() function c79552283.adatkop(e,tp,eg,ep,ev,re,r,rp)
if not tc:IsRelateToEffect(e) or tc:IsFacedown() then return end local tc=Duel.GetFirstTarget()
--defense attack if not tc:IsRelateToEffect(e) or tc:IsFacedown() then return end
local e1=Effect.CreateEffect(e:GetHandler()) --defense attack
e1:SetType(EFFECT_TYPE_SINGLE) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetCode(EFFECT_DEFENSE_ATTACK) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetCode(EFFECT_DEFENSE_ATTACK)
e1:SetValue(c79552283.adaval) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1) e1:SetValue(c79552283.adaval)
end tc:RegisterEffect(e1)
function c79552283.adaval(e) end
local c=e:GetHandler() function c79552283.adaval(e)
return c:GetAttack()>c:GetDefense() and 0 or 1 local c=e:GetHandler()
end return c:GetAttack()>c:GetDefense() and 0 or 1
function c79552283.exfilter(c) end
return c:IsFaceup() and c:IsSetCard(0x17a) and c:GetSequence()>=5 function c79552283.exfilter(c)
end return c:IsFaceup() and c:IsSetCard(0x17a) and c:GetSequence()>=5
function c79552283.discon(e,tp,eg,ep,ev,re,r,rp) end
return Duel.IsChainDisablable(ev) and Duel.IsExistingMatchingCard(c79552283.exfilter,tp,LOCATION_MZONE,0,1,nil) and rp==1-tp function c79552283.discon(e,tp,eg,ep,ev,re,r,rp)
end return Duel.IsChainDisablable(ev) and Duel.IsExistingMatchingCard(c79552283.exfilter,tp,LOCATION_MZONE,0,1,nil) and rp==1-tp
function c79552283.discost(e,tp,eg,ep,ev,re,r,rp,chk) end
local c=e:GetHandler() function c79552283.discost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return c:IsAbleToGraveAsCost() and c:IsStatus(STATUS_EFFECT_ENABLED) end local c=e:GetHandler()
Duel.SendtoGrave(c,REASON_COST) if chk==0 then return c:IsAbleToGraveAsCost() and c:IsStatus(STATUS_EFFECT_ENABLED) end
end Duel.SendtoGrave(c,REASON_COST)
function c79552283.distg(e,tp,eg,ep,ev,re,r,rp,chk) end
if chk==0 then return true end function c79552283.distg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DISABLE,eg,1,0,0) if chk==0 then return true end
end Duel.SetOperationInfo(0,CATEGORY_DISABLE,eg,1,0,0)
function c79552283.disop(e,tp,eg,ep,ev,re,r,rp) end
Duel.NegateEffect(ev) function c79552283.disop(e,tp,eg,ep,ev,re,r,rp)
end Duel.NegateEffect(ev)
end
--肆世壊の新星 --肆世壊の新星
function c83558891.initial_effect(c) function c83558891.initial_effect(c)
--Activate aux.AddCodeList(c,56099748)
local e1=Effect.CreateEffect(c) --Activate
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetTarget(c83558891.target) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetOperation(c83558891.activate) e1:SetTarget(c83558891.target)
c:RegisterEffect(e1) e1:SetOperation(c83558891.activate)
--destroy replace c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) --destroy replace
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) local e2=Effect.CreateEffect(c)
e2:SetCode(EFFECT_DESTROY_REPLACE) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetRange(LOCATION_GRAVE) e2:SetCode(EFFECT_DESTROY_REPLACE)
e2:SetCountLimit(1,83558891) e2:SetRange(LOCATION_GRAVE)
e2:SetTarget(c83558891.reptg) e2:SetCountLimit(1,83558891)
e2:SetValue(c83558891.repval) e2:SetTarget(c83558891.reptg)
e2:SetOperation(c83558891.repop) e2:SetValue(c83558891.repval)
c:RegisterEffect(e2) e2:SetOperation(c83558891.repop)
end c:RegisterEffect(e2)
function c83558891.filter(c,e,tp) end
return (c:IsSetCard(0x17a) or c:IsCode(56099748)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) function c83558891.filter(c,e,tp)
end return (c:IsSetCard(0x17a) or c:IsCode(56099748)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
function c83558891.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) end
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c83558891.filter(chkc,e,tp) end function c83558891.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c83558891.filter(chkc,e,tp) end
and Duel.IsExistingTarget(c83558891.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) and Duel.IsExistingTarget(c83558891.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
local g=Duel.SelectTarget(tp,c83558891.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) local g=Duel.SelectTarget(tp,c83558891.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
function c83558891.activate(e,tp,eg,ep,ev,re,r,rp) end
local tc=Duel.GetFirstTarget() function c83558891.activate(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then local tc=Duel.GetFirstTarget()
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP_DEFENSE) if tc:IsRelateToEffect(e) then
end Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c83558891.repfilter(c,tp) end
return c:IsFaceup() and c:IsSetCard(0x17a) and c:IsType(TYPE_LINK) and c:IsLocation(LOCATION_MZONE) function c83558891.repfilter(c,tp)
and c:IsControler(tp) and c:IsReason(REASON_EFFECT+REASON_BATTLE) and not c:IsReason(REASON_REPLACE) return c:IsFaceup() and c:IsSetCard(0x17a) and c:IsType(TYPE_LINK) and c:IsLocation(LOCATION_MZONE)
end and c:IsControler(tp) and c:IsReason(REASON_EFFECT+REASON_BATTLE) and not c:IsReason(REASON_REPLACE)
function c83558891.reptg(e,tp,eg,ep,ev,re,r,rp,chk) end
if chk==0 then return e:GetHandler():IsAbleToRemove() and eg:IsExists(c83558891.repfilter,1,nil,tp) end function c83558891.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96) if chk==0 then return e:GetHandler():IsAbleToRemove() and eg:IsExists(c83558891.repfilter,1,nil,tp) end
end return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
function c83558891.repval(e,c) end
return c83558891.repfilter(c,e:GetHandlerPlayer()) function c83558891.repval(e,c)
end return c83558891.repfilter(c,e:GetHandlerPlayer())
function c83558891.repop(e,tp,eg,ep,ev,re,r,rp) end
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT) function c83558891.repop(e,tp,eg,ep,ev,re,r,rp)
end Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT)
end
--肆世壊の双牙 --肆世壊の双牙
function c95245571.initial_effect(c) function c95245571.initial_effect(c)
--Activate aux.AddCodeList(c,56099748)
local e1=Effect.CreateEffect(c) --Activate
e1:SetDescription(aux.Stringid(95245571,0)) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY) e1:SetDescription(aux.Stringid(95245571,0))
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCountLimit(1,95245571+EFFECT_COUNT_CODE_OATH) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e1:SetCountLimit(1,95245571+EFFECT_COUNT_CODE_OATH)
e1:SetCost(c95245571.cost) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetTarget(c95245571.target) e1:SetCost(c95245571.cost)
e1:SetOperation(c95245571.activate) e1:SetTarget(c95245571.target)
c:RegisterEffect(e1) e1:SetOperation(c95245571.activate)
--cannot activate c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) --cannot activate
e2:SetDescription(aux.Stringid(95245571,1)) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetDescription(aux.Stringid(95245571,1))
e2:SetCode(EVENT_FREE_CHAIN) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetRange(LOCATION_GRAVE) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetHintTiming(0,TIMING_DRAW_PHASE) e2:SetRange(LOCATION_GRAVE)
e2:SetCondition(c95245571.cacon) e2:SetHintTiming(0,TIMING_DRAW_PHASE)
e2:SetCost(aux.bfgcost) e2:SetCondition(c95245571.cacon)
e2:SetTarget(c95245571.catg) e2:SetCost(aux.bfgcost)
e2:SetOperation(c95245571.caop) e2:SetTarget(c95245571.catg)
c:RegisterEffect(e2) e2:SetOperation(c95245571.caop)
end c:RegisterEffect(e2)
function c95245571.cost(e,tp,eg,ep,ev,re,r,rp,chk) end
e:SetLabel(1) function c95245571.cost(e,tp,eg,ep,ev,re,r,rp,chk)
return true e:SetLabel(1)
end return true
function c95245571.actfilter(c) end
return c:IsCode(56099748) and c:IsFaceup() function c95245571.actfilter(c)
end return c:IsCode(56099748) and c:IsFaceup()
function c95245571.desfilter(c,check) end
return check or c:IsAbleToRemove() function c95245571.desfilter(c,check)
end return check or c:IsAbleToRemove()
function c95245571.descfilter(c,tc,ec,check) end
return c95245571.desfilter(c,check) and c:GetEquipTarget()~=tc and c~=ec function c95245571.descfilter(c,tc,ec,check)
end return c95245571.desfilter(c,check) and c:GetEquipTarget()~=tc and c~=ec
function c95245571.costfilter(c,ec,tp,check) end
if not c:IsSetCard(0x17a) then return false end function c95245571.costfilter(c,ec,tp,check)
return Duel.IsExistingTarget(c95245571.descfilter,tp,0,LOCATION_ONFIELD,2,c,c,ec,check) if not c:IsSetCard(0x17a) then return false end
end return Duel.IsExistingTarget(c95245571.descfilter,tp,0,LOCATION_ONFIELD,2,c,c,ec,check)
function c95245571.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) end
local c=e:GetHandler() function c95245571.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local check=not Duel.IsExistingMatchingCard(c95245571.actfilter,tp,LOCATION_ONFIELD,0,1,nil) local c=e:GetHandler()
if chkc then return chkc:IsOnField() and chkc~=c and c95245571.desfilter(chkc,check) end local check=not Duel.IsExistingMatchingCard(c95245571.actfilter,tp,LOCATION_ONFIELD,0,1,nil)
if chk==0 then if chkc then return chkc:IsOnField() and chkc~=c and c95245571.desfilter(chkc,check) end
if e:GetLabel()==1 then if chk==0 then
e:SetLabel(0) if e:GetLabel()==1 then
return Duel.CheckReleaseGroup(tp,c95245571.costfilter,1,c,c,tp,check) e:SetLabel(0)
else return Duel.CheckReleaseGroup(tp,c95245571.costfilter,1,c,c,tp,check)
return Duel.IsExistingTarget(c95245571.desfilter,tp,0,LOCATION_ONFIELD,2,c,check) else
end return Duel.IsExistingTarget(c95245571.desfilter,tp,0,LOCATION_ONFIELD,2,c,check)
end end
if e:GetLabel()==1 then end
e:SetLabel(0) if e:GetLabel()==1 then
local sg=Duel.SelectReleaseGroup(tp,c95245571.costfilter,1,1,c,c,tp,check) e:SetLabel(0)
Duel.Release(sg,REASON_COST) local sg=Duel.SelectReleaseGroup(tp,c95245571.costfilter,1,1,c,c,tp,check)
end Duel.Release(sg,REASON_COST)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) end
local g=Duel.SelectTarget(tp,c95245571.desfilter,tp,0,LOCATION_ONFIELD,2,2,c,check) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,2,0,0) local g=Duel.SelectTarget(tp,c95245571.desfilter,tp,0,LOCATION_ONFIELD,2,2,c,check)
end Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,2,0,0)
function c95245571.activate(e,tp,eg,ep,ev,re,r,rp) end
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) function c95245571.activate(e,tp,eg,ep,ev,re,r,rp)
local sg=g:Filter(Card.IsRelateToEffect,nil,e) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
if Duel.IsExistingMatchingCard(c95245571.actfilter,tp,LOCATION_ONFIELD,0,1,nil) then local sg=g:Filter(Card.IsRelateToEffect,nil,e)
Duel.Destroy(sg,REASON_EFFECT,LOCATION_REMOVED) if Duel.IsExistingMatchingCard(c95245571.actfilter,tp,LOCATION_ONFIELD,0,1,nil) then
else Duel.Destroy(sg,REASON_EFFECT,LOCATION_REMOVED)
Duel.Destroy(sg,REASON_EFFECT) else
end Duel.Destroy(sg,REASON_EFFECT)
end end
function c95245571.cacon(e,tp,eg,ep,ev,re,r,rp) end
return Duel.IsExistingMatchingCard(Card.IsLinkAbove,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,3) function c95245571.cacon(e,tp,eg,ep,ev,re,r,rp)
end return Duel.IsExistingMatchingCard(Card.IsLinkAbove,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,3)
function c95245571.catg(e,tp,eg,ep,ev,re,r,rp,chk) end
if chk==0 then return Duel.GetFlagEffect(tp,95245571)==0 end function c95245571.catg(e,tp,eg,ep,ev,re,r,rp,chk)
end if chk==0 then return Duel.GetFlagEffect(tp,95245571)==0 end
function c95245571.caop(e,tp,eg,ep,ev,re,r,rp) end
local c=e:GetHandler() function c95245571.caop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(c) local c=e:GetHandler()
e1:SetType(EFFECT_TYPE_FIELD) local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_ACTIVATE) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,1) e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetValue(c95245571.aclimit) e1:SetTargetRange(1,1)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetValue(c95245571.aclimit)
Duel.RegisterEffect(e1,tp) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterFlagEffect(tp,95245571,RESET_PHASE+PHASE_END,0,1) Duel.RegisterEffect(e1,tp)
end Duel.RegisterFlagEffect(tp,95245571,RESET_PHASE+PHASE_END,0,1)
function c95245571.aclimit(e,re,tp) end
local c=re:GetHandler() function c95245571.aclimit(e,re,tp)
return re:IsActiveType(TYPE_MONSTER) and c:IsType(TYPE_LINK) and c:IsLocation(LOCATION_MZONE) local c=re:GetHandler()
end return re:IsActiveType(TYPE_MONSTER) and c:IsType(TYPE_LINK) and c:IsLocation(LOCATION_MZONE)
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