Commit 6ec2664f authored by root's avatar root

Refresh on 2025-05-18 05:39:55

parent 7d5209c4
--扰乱狂乱
local s,id,o=GetID()
function s.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(s.target)
e1:SetOperation(s.operation)
c:RegisterEffect(e1)
--search
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,id)
e2:SetCondition(s.thcon)
e2:SetCost(s.thcost)
e2:SetTarget(s.thtg)
e2:SetOperation(s.thop)
c:RegisterEffect(e2)
end
function s.spfilter(c,e,tp)
return c:IsSetCard(0xf) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end
function s.operation(e,tp,eg,ep,ev,re,r,rp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local ct=Duel.GetMatchingGroupCount(aux.TRUE,tp,0,LOCATION_MZONE,nil)
if ct~=0 and ft>ct then ft=ct end
local g=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_DECK,0,nil,e,tp)
if ft<=0 or g:GetCount()==0 then return end
if Duel.IsPlayerAffectedByEffect(tp,59822133) or ct==0 then ft=1 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=g:SelectSubGroup(tp,aux.dncheck,false,1,ft)
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
end
function s.thcon(e,tp,eg,ep,ev,re,r,rp,chk)
return Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_FZONE,LOCATION_FZONE,1,nil)
end
function s.cfilter(c)
return c:IsSetCard(0xf) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
end
function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost()
and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_GRAVE,0,2,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_GRAVE,0,2,2,e:GetHandler())
g:AddCard(e:GetHandler())
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
function s.thfilter(c)
return c:IsType(TYPE_FIELD) and c:IsAbleToHand()
end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local tg=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_DECK,0,1,1,nil)
if tg:GetCount()>0 then
Duel.SendtoHand(tg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tg)
end
end
\ No newline at end of file
--扰乱闪电
local s,id,o=GetID()
function s.initial_effect(c)
c:SetUniqueOnField(1,1,id)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetRange(LOCATION_HAND)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_SPSUM_PARAM)
e1:SetTargetRange(POS_FACEUP_ATTACK,1)
e1:SetCondition(s.spcon1)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_SPSUMMON_PROC)
e2:SetRange(LOCATION_HAND)
e2:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_SPSUM_PARAM)
e2:SetTargetRange(POS_FACEUP_ATTACK,0)
e2:SetCondition(s.spcon2)
c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,2))
e3:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e3:SetCode(EVENT_SUMMON_SUCCESS)
e3:SetCountLimit(1,id+o)
e3:SetTarget(s.thtg)
e3:SetOperation(s.thop)
c:RegisterEffect(e3)
local e4=e3:Clone()
e4:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e4)
end
function s.spcon1(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0
end
function s.spcon2(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
end
function s.thfilter(c)
return c:IsSetCard(0xf) and c:IsAbleToHand()
end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local hp=e:GetHandler():GetOwner()
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,hp,LOCATION_DECK)
end
function s.thop(e,tp,eg,ep,ev,re,r,rp)
local hp=e:GetHandler():GetOwner()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(hp,s.thfilter,hp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-hp,g)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(hp,Card.IsAbleToGrave,hp,LOCATION_HAND,0,1,1,nil)
Duel.SendtoGrave(g,REASON_EFFECT)
end
end
\ No newline at end of file
--武装龙的祭坛
local s,id,o=GetID()
function s.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,id)
e1:SetOperation(s.activate)
c:RegisterEffect(e1)
--indes
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e2:SetRange(LOCATION_FZONE)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(s.target)
e2:SetValue(aux.indoval)
c:RegisterEffect(e2)
--cannot be target
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e3:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e3:SetRange(LOCATION_FZONE)
e3:SetTargetRange(LOCATION_MZONE,0)
e3:SetTarget(s.target)
e3:SetValue(aux.tgoval)
c:RegisterEffect(e3)
--search
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,1))
e3:SetCategory(CATEGORY_SEARCH)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_LEAVE_FIELD)
e3:SetRange(LOCATION_FZONE)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCountLimit(1,id+o)
e3:SetCondition(s.thcon)
e3:SetTarget(s.thtg)
e3:SetOperation(s.thop)
c:RegisterEffect(e3)
end
function s.thfilter(c)
return c:IsSetCard(0x111) and c:IsAbleToHand()
end
function s.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(s.thfilter,tp,LOCATION_DECK,0,nil)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg=g:Select(tp,1,1,nil)
Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg)
end
end
function s.target(e,c)
return c:IsSetCard(0x111)
end
function s.cfilter(c,tp)
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsReason(REASON_EFFECT)
and c:IsPreviousSetCard(0x111) and c:IsPreviousControler(tp)
end
function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.cfilter,1,nil,tp)
end
function s.thfilter2(c)
return c:IsSetCard(0xf) and c:IsAbleToHand()
end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter2,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function s.thop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(s.thfilter2,tp,LOCATION_DECK,0,nil)
if g:GetCount()>1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg=g:Select(tp,1,1,nil)
Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg)
end
end
\ No newline at end of file
--扰乱三角闪电!!
local s,id,o=GetID()
function s.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_CONTROL)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(s.cost)
e1:SetTarget(s.target)
e1:SetOperation(s.activate)
c:RegisterEffect(e1)
--damage
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DAMAGE+CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_GRAVE)
e2:SetCondition(s.damcon)
e2:SetCost(aux.bfgcost)
e2:SetTarget(s.damtg)
e2:SetOperation(s.damop)
c:RegisterEffect(e2)
end
function s.cfilter(c,tp)
return c:IsSetCard(0xf) and c:IsAbleToGraveAsCost()
and Duel.GetMZoneCount(tp,c,tp,LOCATION_REASON_CONTROL)>0
end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD+LOCATION_MZONE,0,1,e:GetHandler(),tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,e:GetHandler(),tp)
Duel.SendtoGrave(g,REASON_COST)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsControlerCanBeChanged() end
if chk==0 then return Duel.IsExistingTarget(Card.IsControlerCanBeChanged,tp,0,LOCATION_MZONE,1,nil,true) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
local g=Duel.SelectTarget(tp,Card.IsControlerCanBeChanged,tp,0,LOCATION_MZONE,1,1,nil,true)
Duel.SetOperationInfo(0,CATEGORY_CONTROL,g,1,0,0)
end
function s.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.GetControl(tc,tp)
end
end
function s.cfilter2(c)
return c:IsFaceup() and c:IsSetCard(0xf) and bit.band(c:GetOriginalType(),TYPE_MONSTER)~=0
end
function s.damcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.cfilter2,tp,LOCATION_ONFIELD,0,3,nil)
end
function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,0,0xe,1,nil) end
Duel.SetTargetPlayer(1-tp)
local dam=Duel.GetFieldGroupCount(1-tp,0xe,0)*500
Duel.SetTargetParam(dam)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,dam)
end
function s.cfilter3(c)
return c:IsAbleToGrave() and c:IsCode(8251996)
end
function s.damop(e,tp,eg,ep,ev,re,r,rp)
local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
local dam=Duel.GetFieldGroupCount(1-tp,0xe,0)*500
Duel.Damage(p,dam,REASON_EFFECT)
if Duel.IsExistingMatchingCard(s.cfilter3,tp,LOCATION_HAND,0,1,nil)
and Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
local g=Duel.SelectTarget(tp,s.cfilter3,tp,LOCATION_HAND,0,1,1,nil)
if Duel.SendtoGrave(g,REASON_EFFECT)~=0 and g:GetFirst():IsLocation(LOCATION_GRAVE) then
local sg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD)
Duel.Destroy(sg,REASON_EFFECT)
end
end
end
\ No newline at end of file
--扰乱·小
local s,id,o=GetID()
function s.initial_effect(c)
--to grave
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_DECKDES+CATEGORY_TOGRAVE+CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCountLimit(1,id)
e1:SetCondition(s.tgcon)
e1:SetTarget(s.tgtg)
e1:SetOperation(s.tgop)
c:RegisterEffect(e1)
end
function s.tgcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_HAND+LOCATION_ONFIELD)
end
function s.rmfilter(c,tp)
return not c:IsCode(id) and c:IsSetCard(0xf) and c:IsAbleToRemove()
and Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_DECK,0,1,c,nil)
end
function s.rmfilter2(c,tp)
return not c:IsCode(id) and c:IsSetCard(0xf) and c:IsAbleToRemove()
end
function s.tgfilter(c)
return not c:IsCode(id) and c:IsSetCard(0xf) and c:IsAbleToGrave()
end
function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.rmfilter,tp,LOCATION_DECK,0,1,nil,tp) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
end
function s.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,s.rmfilter2,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 and Duel.Remove(g,POS_FACEUP,REASON_EFFECT)~=0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local sg=Duel.SelectMatchingCard(tp,s.tgfilter,tp,LOCATION_DECK,0,1,1,nil)
if sg:GetCount()>0 then
Duel.SendtoGrave(sg,REASON_EFFECT)
end
end
end
\ No newline at end of file
--扰乱·蛇
local s,id,o=GetID()
function s.initial_effect(c)
--to grave
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e1:SetCountLimit(1,id)
e1:SetCondition(s.tgcon)
e1:SetTarget(s.tgtg)
e1:SetOperation(s.tgop)
c:RegisterEffect(e1)
end
function s.tgcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_HAND+LOCATION_ONFIELD)
end
function s.tgfilter(c)
return c:IsFaceupEx() and c:IsSetCard(0xf)
end
function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and s.tgfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(s.tgfilter,tp,LOCATION_REMOVED,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectTarget(tp,s.tgfilter,tp,LOCATION_REMOVED,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,1,0,0)
end
function s.tgop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
if tc:IsAbleToHand() and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)
else
Duel.SendtoGrave(tc,REASON_EFFECT+REASON_RETURN)
end
if Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0
and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
Duel.BreakEffect()
local zone=Duel.SelectDisableField(tp,1,0,LOCATION_MZONE,0)
if tp==1 then
zone=((zone&0xffff)<<16)|((zone>>16)&0xffff)
end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DISABLE_FIELD)
e1:SetValue(zone)
e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN)
Duel.RegisterEffect(e1,tp)
end
end
end
\ No newline at end of file
--扰乱·肥
local s,id,o=GetID()
function s.initial_effect(c)
--search
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCountLimit(1,id)
e1:SetCondition(s.thcon)
e1:SetTarget(s.thtg)
e1:SetOperation(s.thop)
c:RegisterEffect(e1)
end
function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_HAND+LOCATION_ONFIELD)
end
function s.filter1(c,tp)
return c:IsType(TYPE_EFFECT) and c:IsSetCard(0xf) and c:IsAbleToHand()
and Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_DECK,0,1,c,tp)
end
function s.filter2(c)
return c:IsSetCard(0x111) and c:IsAbleToHand()
end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)>0 and Duel.IsExistingMatchingCard(s.filter1,tp,LOCATION_DECK,0,1,nil,tp) end
Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,tp,1)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,2,tp,LOCATION_DECK)
end
function s.thop(e,tp,eg,ep,ev,re,r,rp)
if Duel.DiscardHand(tp,nil,1,1,REASON_EFFECT+REASON_DISCARD)==0 then return end
local g1=Duel.GetMatchingGroup(s.filter1,tp,LOCATION_DECK,0,nil,tp)
local g2=Duel.GetMatchingGroup(s.filter2,tp,LOCATION_DECK,0,nil)
if g1:GetCount()==0 or g2:GetCount()==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=g1:Select(tp,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local gg=g2:Select(tp,1,1,nil)
g:Merge(gg)
if g:GetCount()==2 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
\ No newline at end of file
--扰乱·紫
local s,id,o=GetID()
function s.initial_effect(c)
--search
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCountLimit(1,id)
e1:SetCondition(s.thcon)
e1:SetTarget(s.thtg)
e1:SetOperation(s.thop)
c:RegisterEffect(e1)
end
s.has_text_type=TYPE_UNION
function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_HAND+LOCATION_ONFIELD)
end
function s.filter1(c,tp)
return c:IsType(TYPE_NORMAL) and c:IsSetCard(0xf) and c:IsAbleToHand()
and Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_DECK,0,1,c,tp)
end
function s.filter2(c)
return c:IsType(TYPE_UNION) and c:IsAbleToHand()
end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)>0 and Duel.IsExistingMatchingCard(s.filter1,tp,LOCATION_DECK,0,1,nil,tp) end
Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,tp,1)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,2,tp,LOCATION_DECK)
end
function s.thop(e,tp,eg,ep,ev,re,r,rp)
if Duel.DiscardHand(tp,nil,1,1,REASON_EFFECT+REASON_DISCARD)==0 then return end
local g1=Duel.GetMatchingGroup(s.filter1,tp,LOCATION_DECK,0,nil,tp)
local g2=Duel.GetMatchingGroup(s.filter2,tp,LOCATION_DECK,0,nil)
if g1:GetCount()==0 or g2:GetCount()==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=g1:Select(tp,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local gg=g2:Select(tp,1,1,nil)
g:Merge(gg)
if g:GetCount()==2 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
\ No newline at end of file
--扰乱·金
local s,id,o=GetID()
function s.initial_effect(c)
--search
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCountLimit(1,id)
e1:SetCondition(s.thcon)
e1:SetTarget(s.thtg)
e1:SetOperation(s.thop)
c:RegisterEffect(e1)
end
function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_HAND+LOCATION_ONFIELD)
end
function s.filter1(c)
return c:IsType(TYPE_SPELL) and c:IsSetCard(0xf) and c:IsAbleToHand()
end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)>0 and Duel.IsExistingMatchingCard(s.filter1,tp,LOCATION_DECK,0,1,nil,tp) end
Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,tp,1)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,2,tp,LOCATION_DECK)
end
function s.thop(e,tp,eg,ep,ev,re,r,rp)
if Duel.DiscardHand(tp,nil,1,1,REASON_EFFECT+REASON_DISCARD)==0 then return end
local g1=Duel.GetMatchingGroup(s.filter1,tp,LOCATION_DECK,0,nil)
if g1:GetCount()==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=g1:Select(tp,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
if Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0
and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
Duel.BreakEffect()
local zone=Duel.SelectDisableField(tp,1,0,LOCATION_MZONE,0)
if tp==1 then
zone=((zone&0xffff)<<16)|((zone>>16)&0xffff)
end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DISABLE_FIELD)
e1:SetValue(zone)
e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN)
Duel.RegisterEffect(e1,tp)
end
end
end
\ No newline at end of file
--扰乱·银
local s,id,o=GetID()
function s.initial_effect(c)
--search
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCountLimit(1,id)
e1:SetCondition(s.thcon)
e1:SetTarget(s.thtg)
e1:SetOperation(s.thop)
c:RegisterEffect(e1)
end
function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_HAND+LOCATION_ONFIELD)
end
function s.filter1(c)
return c:IsType(TYPE_TRAP) and c:IsSetCard(0xf) and c:IsAbleToHand()
end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)>0 and Duel.IsExistingMatchingCard(s.filter1,tp,LOCATION_DECK,0,1,nil,tp) end
Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,tp,1)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,2,tp,LOCATION_DECK)
end
function s.thop(e,tp,eg,ep,ev,re,r,rp)
if Duel.DiscardHand(tp,nil,1,1,REASON_EFFECT+REASON_DISCARD)==0 then return end
local g1=Duel.GetMatchingGroup(s.filter1,tp,LOCATION_DECK,0,nil)
if g1:GetCount()==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=g1:Select(tp,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
if Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0
and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
Duel.BreakEffect()
local zone=Duel.SelectDisableField(tp,1,0,LOCATION_MZONE,0)
if tp==1 then
zone=((zone&0xffff)<<16)|((zone>>16)&0xffff)
end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DISABLE_FIELD)
e1:SetValue(zone)
e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN)
Duel.RegisterEffect(e1,tp)
end
end
end
\ No newline at end of file
......@@ -7637,7 +7637,7 @@ Take Your Heart(114514326) 通常陷阱 (Custom)
系列:0xF
这个卡名的②的效果1回合只能使用1次。
①:从卡组把1只「扰乱」怪兽特殊召唤。对方场上有怪兽的场合,也能作为代替把最多对方场上怪兽数量的「扰乱」怪兽从卡组特殊召唤(同名卡最多1张)。
②:场上有场地魔法的场合,把墓地的这张卡和2只「扰乱」怪兽除外才能发动。从卡组把1张场地魔法加入手卡。
②:场上有场地魔法卡存在的场合,把墓地的这张卡和2只「扰乱」怪兽除外才能发动。从卡组把1张场地魔法卡加入手卡。
D-爆裂(114514687) 通常魔法 (Custom)
①:以场上1张表侧表示的魔法·陷阱卡为对象才能发动。那张卡破坏,抽1张卡。自己场上有「龙骑士 D-终」或者8星以上的「命运英雄」怪兽的场合,作为代替把那张卡里侧表示除外,抽2张卡。
......@@ -7649,6 +7649,7 @@ D-爆裂(114514687) 通常魔法 (Custom)
①:这张卡可以在自己或者对方场上攻击表示特殊召唤。
②:「扰乱闪电」在双方场上只能有1张表侧表示存在。
③:这张卡召唤·特殊召唤的场合发动。这张卡的原本持有者从自身卡组把1只「扰乱」怪兽和1张「扰乱」魔法·陷阱卡加入手卡,再把1张手卡送去墓地。
提示文本:对方场上特殊召唤、自己场上特殊召唤
武装龙的祭坛(114514689) 场地魔法 (Custom)
系列:0x111
......@@ -7656,6 +7657,7 @@ D-爆裂(114514687) 通常魔法 (Custom)
①:作为这张卡发动时的效果处理,从卡组把1张「武装龙」卡加入手卡。
②:自己场上的「武装龙」不会被对方的效果破坏,不会成为对方的效果的对象。
③:自己的「武装龙」怪兽从场上离开的场合才能发动。从卡组把1张「扰乱」卡加入手卡。
提示文本:是否从卡组把卡加入手卡?
急袭猛禽编队(114514690) 通常魔法 (Custom)
系列:0xBA
......@@ -7699,8 +7701,9 @@ D-爆裂(114514687) 通常魔法 (Custom)
扰乱三角闪电!!(114514695) 速攻魔法 (Custom)
系列:0xF
这个卡名的②的效果1回合只能使用1次。
①:把自己手卡·场上1张「扰乱」卡送去墓地,以对方场上1只怪兽为对象才能发动。得到那只怪兽的控制权。
②:自己场上有3只以上「扰乱」怪兽的场合,把墓地的这张卡除外才能发动。给与对方对方的手卡·场上的卡的数量×500伤害。那之后,可以把手卡1张「扰乱三角飓风!!」送去墓地,把对方场上的卡全部破坏。
①:把自己的手卡·场上这张卡的1张「扰乱」卡送去墓地,以对方场上1只怪兽为对象才能发动。得到那只怪兽的控制权。
②:自己场上有3张以上「扰乱」怪兽卡的场合,把墓地的这张卡除外才能发动。给与对方对方的手卡·场上的卡的数量×500伤害。那之后,可以把手卡1张「扰乱三角飓风!!」送去墓地,把对方场上的卡全部破坏。
提示文本:、、是否再破坏对方的卡?
地缚神 秘犀(114514696) 暗 10星 兽 2600 2900 (Custom)
系列:0x1021
......@@ -7763,11 +7766,13 @@ V-喷射虎(114514702=>51638941) 风 5星 兽/同盟 1800 1600 (Custom)
系列:0xF
这个卡名效果1回合只能使用1次。
①:这张卡从手卡·场上送去墓地的场合才能发动。从卡组把1张「扰乱·小」以外的「扰乱」卡除外,1张「扰乱」卡送去墓地。
效果分类:特殊召唤、效果无效
扰乱·蛇(114514704) 光 2星 兽 0 1000 (Custom)
系列:0xF
这个卡名效果1回合只能使用1次。
①:这张卡从手卡·场上送去墓地的场合,以1张除外状态的「扰乱」卡为对象才能发动。那张卡加入手卡或者回到墓地。那之后,可以指定没有使用的对方的怪兽区域1处。那个区域直到对方回合结束时不能使用。
提示文本:、是否加入手卡?、是否指定对方怪兽区域不能使用?
扰乱·肥(114514705) 光 2星 兽 0 1000 (Custom)
系列:0xF
......@@ -7784,12 +7789,14 @@ V-喷射虎(114514702=>51638941) 风 5星 兽/同盟 1800 1600 (Custom)
这个卡名的效果1回合只能使用1次。
①:这张卡从手卡·场上送去墓地的场合才能发动。丢弃1张手卡,从卡组选1张「扰乱」魔法卡加入手卡。那之后,可以指定没有使用的对方的魔法·陷阱区域1处。那个区域直到对方回合结束时不能使用。
效果分类:卡组检索
提示文本:、、是否指定对方怪兽区域不能使用?
扰乱·银(114514708) 光 2星 兽 0 1000 (Custom)
系列:0xF
这个卡名的效果1回合只能使用1次。
①:这张卡从手卡·场上送去墓地的场合才能发动。丢弃1张手卡,从卡组选1张「扰乱」陷阱卡加入手卡。那之后,可以指定没有使用的对方的魔法·陷阱区域1处。那个区域直到对方回合结束时不能使用。
效果分类:卡组检索
提示文本:、、是否指定对方怪兽区域不能使用?
扰乱的回忆(114514709) 通常陷阱 (Custom)
系列:0xF
......@@ -9956,12 +9963,14 @@ No.39 羁望皇 霍普(114514991) 光 4阶 战士/超量 2500 2000 (Custom)
系列:0x111
这个卡名的②的效果1回合只能使用1次。
①:自己场上有「武装龙」怪兽存在的场合才能发动。场上的怪兽之内除等级最高的「武装龙」怪兽以外的怪兽全部无效,攻击力变成0。场上的「武装龙」怪兽直到回合结束时不受自身以外的卡的效果影响。
②:把墓地的这张卡除外,以自己墓地1只「武装龙」怪兽为对象才能发动(双方不能对应这个效果的发动把效果发动)。自己场上的龙族怪兽的攻击力上升那只怪兽的等级×700的数值。这个回合,自己只能用1只怪兽攻击。
②:把墓地的这张卡除外,以自己墓地1只「武装龙」怪兽为对象才能发动(双方不能对应这个效果的发动把效果发动)。自己场上的龙族怪兽的攻击力上升那只怪兽的等级×700的数值。这个回合,自己只能用1只怪兽攻击。
lua by 芝士
武装龙的羁绊(114514994) 速攻魔法 (Custom)
系列:0x111
①:以自己墓地1只「LV」怪兽为对象才能发动。那只怪兽无视召唤条件特殊召唤,从卡组把1只那只怪兽的同名卡或者1只「扰乱」怪兽给那只怪兽装备,那只怪兽的等级每有4星抽1张卡。
②:把墓地的这张卡除外,以自己场上1只「LV」怪兽为对象才能发动。从卡组把1张「扰乱」卡,或者1只属性·种族与对象怪兽相同,而等级比那只怪兽高2星或4星的怪兽加入手卡。
②:把墓地的这张卡除外,以自己场上1只「LV」怪兽为对象才能发动。从卡组把1张「扰乱」卡,或者1只属性·种族与对象怪兽相同,而等级比那只怪兽高2星或4星的怪兽加入手卡。
lua by 芝士
效果分类:抽卡辅助、特殊召唤
双重升阶魔法-希望之力(114514995) 通常魔法 (Custom)
......@@ -12334,7 +12343,8 @@ S.A.R.A.(172016027) 无 3星 龙/调整 0 1800 (Custom)
这个卡名的①②③的效果1回合各能使用1次。
①:双方回合,这张卡在手卡的场合,以场上1张装备魔法·场地魔法·永续魔法·永续陷阱为对象才能发动。那张卡破坏,从卡组·墓地把1张「幽狱之时计塔」在那张卡的控制者的场地区域表侧表示放置,这张卡从手卡特殊召唤。
②:这张卡召唤·特殊召唤的场合才能发动。从卡组把1只「命运英雄」怪兽当作装备魔法卡使用给这张卡装备。
③:把自己场上1张「命运英雄」卡回到手卡才能发动。给所有场地区域的「幽狱之时计塔」各放置双方场上·墓地的「英雄」怪兽卡数量的时针指示物。
③:把自己场上1张「命运英雄」卡回到手卡才能发动。给所有场地区域的「幽狱之时计塔」各放置双方场上·墓地的「英雄」怪兽卡数量的时针指示物。
lua by 芝士
命运英雄 沙尘人(191981157) 暗 3星 战士 600 600 (Custom)
系列:0xC008
......@@ -12509,7 +12519,8 @@ D-心灵(191981160) 通常魔法 (Custom)
①:从以下效果中选1个发动。
●从卡组·墓地把1只「灭亡龙 威多释」加入手卡或者在对方场上特殊召唤。这个效果把「灭亡龙 威多释」特殊召唤了的场合,场上的怪兽全部变成炎族。
●以对方场上1只表侧表示怪兽为对象才能发动。从手卡把1只「灰灭」怪兽特殊召唤,那只怪兽送去墓地。场地区域有「灰灭之都 奥布西地暮」存在的场合,特殊召唤的「灰灭」怪兽也能从墓地选。
②:双方结束阶段,自己墓地有「灭亡龙 威多释」的场合才能发动。这张卡在自己场上盖放。
②:双方结束阶段,自己墓地有「灭亡龙 威多释」的场合才能发动。这张卡在自己场上盖放。
lua by 魊影透明鱼
提示文本:灭亡的预兆、直面灭亡、加入手卡、特殊召唤
灰灭都的潜伏者 威多释(191981304) 暗 5星 炎 2500 1000 (Custom)
......@@ -12526,7 +12537,8 @@ D-心灵(191981160) 通常魔法 (Custom)
自己墓地有场地魔法卡的场合,1回合1次也能从自己场上·墓地把「灰灭」怪兽各1只除外从额外卡组特殊召唤。这个卡名的②③的效果1回合各能使用1次。
①:怪兽区域的这张卡和自己场地区域的卡不会被卡的效果破坏。
②:双方回合,场地区域有表侧表示卡的场合才能发动。选对方场上1只怪兽破坏。双方场地区域都有表侧表示卡,或者自己墓地有场地魔法的场合,也能作为代替选对方场上1只怪兽除外。
③:场上的这张卡送去墓地或除外的场合才能发动。从卡组·额外卡组把1只8星以下的「灰灭」怪兽特殊召唤。
③:场上的这张卡送去墓地或除外的场合才能发动。从卡组·额外卡组把1只8星以下的「灰灭」怪兽特殊召唤。
lua by 魊影透明鱼
提示文本:、、封印、赐以永劫
狂乱结晶 提斯蒂娜(191981306) 暗 10阶 水/超量 2000 3000 (Custom)
......
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