Commit 6675ee21 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent 63bf185a
Pipeline #30076 passed with stage
in 9 minutes and 14 seconds
No preview for this file type
...@@ -1957,8 +1957,6 @@ ...@@ -1957,8 +1957,6 @@
96077026 0 --净洁白龙 96077026 0 --净洁白龙
96077028 0 --闪耀光龙 96077028 0 --闪耀光龙
96077033 0 --深渊海神秘龙 96077033 0 --深渊海神秘龙
#989
98910514 0 --群侠聚金庸
#986 #986
98600002 0 --欧忒耳佩 98600002 0 --欧忒耳佩
98600004 1 --情书 98600004 1 --情书
......
--天涯循归途
function c98910501.initial_effect(c)
--Activate
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_ACTIVATE)
e0:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e0)
--set
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(98910501,0))
e1:SetCategory(CATEGORY_LEAVE_GRAVE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_GRAVE)
e1:SetLabel(0)
e1:SetCountLimit(1,98910512)
e1:SetCost(c98910501.setcost)
e1:SetTarget(c98910501.settg)
e1:SetOperation(c98910501.setop)
c:RegisterEffect(e1)
--equip
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(98910501,1))
e2:SetCategory(CATEGORY_SEARCH+CATEGORY_EQUIP+CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e2:SetRange(LOCATION_SZONE)
e2:SetCountLimit(1,98910512)
e2:SetTarget(c98910501.eqtg)
e2:SetOperation(c98910501.eqop)
c:RegisterEffect(e2)
--to deck
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(98910501,2))
e3:SetCategory(CATEGORY_SEARCH+CATEGORY_EQUIP+CATEGORY_TOHAND)
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_FREE_CHAIN)
e3:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e3:SetRange(LOCATION_SZONE)
e3:SetCountLimit(1,98910512)
e3:SetTarget(c98910501.tdtg)
e3:SetOperation(c98910501.tdop)
c:RegisterEffect(e3)
end
function c98910501.setcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1)
return true
end
function c98910501.settg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
if e:GetLabel()~=1 then return false end
e:SetLabel(0)
return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK,0,1,nil,0x980)
end
e:SetLabel(0)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_DECK,0,1,1,nil,0x980)
Duel.SendtoGrave(g,REASON_COST)
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,e:GetHandler(),1,0,0)
end
function c98910501.setop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g=Duel.GetLocationCount(tp,LOCATION_SZONE)
if g==0 then return end
Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
end
function c98910501.pfilter(c,tp)
return c:IsType(TYPE_SPELL) and c:IsType(TYPE_QUICKPLAY) and c:IsSetCard(0x980) and c:IsAbleToHand()
end
function c98910501.filter(c,tp)
return c:IsFaceup() and c:IsSetCard(0x980)
and Duel.IsExistingMatchingCard(c98910501.eqfilter,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE,0,1,nil,c,tp)
end
function c98910501.eqfilter(c,tc,tp)
return c:IsType(TYPE_EQUIP) and c:IsSetCard(0x980) and c:CheckEquipTarget(tc) and c:CheckUniqueOnField(tp) and not c:IsForbidden()
end
function c98910501.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c98910501.filter(chkc,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingTarget(c98910501.filter,tp,LOCATION_MZONE,0,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c98910501.filter,tp,LOCATION_MZONE,0,1,1,nil,tp)
end
function c98910501.eqop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsControler(tp) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
local g=Duel.SelectMatchingCard(tp,c98910501.eqfilter,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,tc,tp)
if g:GetCount()>0 then
Duel.Equip(tp,g:GetFirst(),tc)
if Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) and Duel.IsExistingMatchingCard(c98910501.pfilter,tp,LOCATION_DECK,0,1,nil) then
if Duel.SelectYesNo(tp,aux.Stringid(98910501,3)) then
if Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD) ~=0 then
local sp=Duel.SelectMatchingCard(tp,c98910501.pfilter,tp,LOCATION_DECK,0,1,1,nil)
local sp1=sp:GetCount()
if sp1==0 then return end
Duel.SendtoHand(sp,tp,REASON_EFFECT)
end end end end
end
end
function c98910501.tdfilter(c,e,tp)
return c:IsSetCard(0x980) and c:IsType(TYPE_SPELL) and c:IsType(TYPE_EQUIP+TYPE_QUICKPLAY)
and Duel.IsExistingMatchingCard(c98910501.tdfilter1,tp,LOCATION_DECK,0,1,nil,e,tp,c:GetCode()) and c:IsAbleToDeck()
end
function c98910501.tdfilter2(c)
return c:IsSetCard(0x980) and c:IsFaceup() and c:GetEquipCount()==0
end
function c98910501.tdfilter1(c,e,tp,code)
return c:IsSetCard(0x980) and not c:IsCode(code) and c:IsAbleToHand() and c:IsType(TYPE_QUICKPLAY)
end
function c98910501.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and c98910501.tdfilter(chkc,e,tp) end
if chk==0 then return Duel.IsExistingTarget(c98910501.tdfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,e:GetHandler(),e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectTarget(tp,c98910501.tdfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,1,e:GetHandler(),e,tp)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c98910501.tdop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if not tc:IsRelateToEffect(e) then return end
Duel.SendtoDeck(tc,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c98910501.tdfilter1,tp,LOCATION_DECK,0,1,1,nil,e,tp,tc:GetCode())
if g:GetCount()>0 then
if Duel.SendtoHand(g,tp,REASON_EFFECT)~=0 then
Duel.BreakEffect()
local sg=Duel.GetMatchingGroup(c98910501.tdfilter2,tp,LOCATION_MZONE,0,nil)
local sg1=sg:GetFirst()
while sg1 do
local e2=Effect.CreateEffect(sg1)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_UNCOPYABLE)
e2:SetRange(LOCATION_MZONE)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetValue(1000)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
sg1:RegisterEffect(e2,true)
sg1=sg:GetNext()
end
end
end
end
\ No newline at end of file
--小师妹
function c98910502.initial_effect(c)
--search
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_GRAVE+LOCATION_HAND)
e1:SetCountLimit(1,98910501)
e1:SetCost(c98910502.cost)
e1:SetTarget(c98910502.tg)
e1:SetOperation(c98910502.op)
c:RegisterEffect(e1)
--set
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,98910502)
e2:SetCondition(c98910502.con)
e2:SetTarget(c98910502.stg)
e2:SetOperation(c98910502.sop)
c:RegisterEffect(e2)
--can not be attack target
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_MZONE)
e3:SetCode(EFFECT_CANNOT_BE_BATTLE_TARGET)
e3:SetCondition(c98910502.con)
e3:SetValue(aux.imval1)
c:RegisterEffect(e3)
--cannot target
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e4:SetRange(LOCATION_MZONE)
e4:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e4:SetCondition(c98910502.con)
e4:SetValue(aux.tgoval)
c:RegisterEffect(e4)
end
function c98910502.confilter(c)
return c:IsFaceup() and c:IsSetCard(0x980) and not c:IsCode(98910502)
end
function c98910502.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c98910502.confilter,tp,LOCATION_MZONE,0,1,nil)
end
function c98910502.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost()
end
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end
function c98910502.thfilter(c)
return c:IsCode(98910514) and c:IsAbleToHand()
end
function c98910502.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c98910502.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE)
end
function c98910502.op(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c98910502.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
function c98910502.stfilter(c,tp)
return c:IsSetCard(0x980) and c:IsType(TYPE_CONTINUOUS) and not c:IsForbidden() and c:CheckUniqueOnField(tp)
end
function c98910502.stg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c98910502.stfilter,tp,LOCATION_DECK,0,1,1,nil,tp) end
end
function c98910502.sop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local tc=Duel.SelectMatchingCard(tp,c98910502.stfilter,tp,LOCATION_DECK,0,1,1,nil,tp):GetFirst()
if tc then
local loc=LOCATION_SZONE
Duel.MoveToField(tc,tp,tp,loc,POS_FACEUP,true)
end
end
\ No newline at end of file
--武师 长鸣
function c98910503.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(98910503,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,98910503)
e1:SetCondition(c98910503.spcon)
e1:SetTarget(c98910503.sptg)
e1:SetOperation(c98910503.spop)
c:RegisterEffect(e1)
--Search
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetRange(LOCATION_MZONE)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCountLimit(1,98910504)
e2:SetTarget(c98910503.thtg)
e2:SetOperation(c98910503.thop)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e3)
--to deck
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(98910503,1))
e4:SetCategory(CATEGORY_TODECK+CATEGORY_TOHAND)
e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetProperty(EFFECT_FLAG_CARD_TARGET)
e4:SetRange(LOCATION_GRAVE)
e4:SetTarget(c98910503.tdtg)
e4:SetOperation(c98910503.tdop)
c:RegisterEffect(e4)
end
function c98910503.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x980)
end
function c98910503.spcon(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(tp,LOCATION_MZONE,0)
return g:GetCount()==0 or g:FilterCount(c98910503.cfilter,nil)==g:GetCount()
end
function c98910503.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c98910503.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
local tg=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
local tc=tg:GetFirst()
while tc do
local atk=tc:GetAttack()
local def=tc:GetDefense()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(-1000)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(98910503,0))
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_INDESTRUCTABLE_COUNT)
e1:SetValue(c98910503.indct)
e1:SetCountLimit(1)
e1:SetCondition(c98910503.indcon)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
tc=tg:GetNext()
end
end
function c98910503.indct(e,re,r,rp)
return bit.band(r,REASON_BATTLE)~=0
end
function c98910503.indcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsLocation(LOCATION_MZONE)
end
function c98910503.thfilter(c)
return c:IsSetCard(0x980) and c:IsType(TYPE_QUICKPLAY) and c:IsAbleToHand()
end
function c98910503.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c98910503.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c98910503.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c98910503.thfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
function c98910503.thfilter1(c)
return c:IsSetCard(0x980) and c:IsType(TYPE_QUICKPLAY) and c:IsAbleToDeck()
end
function c98910503.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c98910503.thfilter1(chkc) end
if chk==0 then return e:GetHandler():IsAbleToHand()
and Duel.IsExistingTarget(c98910503.thfilter1,tp,LOCATION_GRAVE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectTarget(tp,c98910503.thfilter1,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TODECK,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end
function c98910503.tdop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) then
Duel.SendtoDeck(tc,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
Duel.SendtoHand(c,nil,REASON_EFFECT)
end
end
\ No newline at end of file
--气师 鸿沟
function c98910504.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(98910504,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,98910508)
e1:SetCondition(c98910504.spcon)
e1:SetTarget(c98910504.sptg)
e1:SetOperation(c98910504.spop)
c:RegisterEffect(e1)
--Search
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetRange(LOCATION_MZONE)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCountLimit(1,98910506)
e2:SetTarget(c98910504.thtg)
e2:SetOperation(c98910504.thop)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e3)
--to deck
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(98910504,1))
e4:SetCategory(CATEGORY_TODECK+CATEGORY_TOHAND)
e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetProperty(EFFECT_FLAG_CARD_TARGET)
e4:SetRange(LOCATION_GRAVE)
e4:SetTarget(c98910504.tdtg)
e4:SetOperation(c98910504.tdop)
c:RegisterEffect(e4)
end
function c98910504.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x980)
end
function c98910504.spcon(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(tp,LOCATION_MZONE,0)
return g:GetCount()==0 or g:FilterCount(c98910504.cfilter,nil)==g:GetCount()
end
function c98910504.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c98910504.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
local tg=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,0,nil)
local tc=tg:GetFirst()
while tc do
local atk=tc:GetAttack()
local def=tc:GetDefense()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(1000)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(98910504,0))
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_INDESTRUCTABLE_COUNT)
e1:SetValue(c98910504.indct)
e1:SetCountLimit(1)
e1:SetCondition(c98910504.indcon)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
tc=tg:GetNext()
end
end
function c98910504.indct(e,re,r,rp)
return bit.band(r,REASON_EFFECT)~=0
end
function c98910504.indcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsLocation(LOCATION_MZONE)
end
function c98910504.thfilter(c)
return c:IsSetCard(0x980) and c:IsType(TYPE_QUICKPLAY) and c:IsAbleToHand()
end
function c98910504.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c98910504.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c98910504.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c98910504.thfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
function c98910504.thfilter1(c)
return c:IsSetCard(0x980) and c:IsType(TYPE_QUICKPLAY) and c:IsAbleToDeck()
end
function c98910504.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c98910504.thfilter1(chkc) end
if chk==0 then return e:GetHandler():IsAbleToHand()
and Duel.IsExistingTarget(c98910504.thfilter1,tp,LOCATION_GRAVE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectTarget(tp,c98910504.thfilter1,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TODECK,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end
function c98910504.tdop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) then
Duel.SendtoDeck(tc,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
Duel.SendtoHand(c,nil,REASON_EFFECT)
end
end
--独步天下
function c98910505.initial_effect(c)
c:SetUniqueOnField(1,0,98910505)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_NEGATE)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_CHAINING)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,98910510)
e2:SetCondition(c98910505.discon)
e2:SetCost(c98910505.discost)
e2:SetTarget(c98910505.distg)
e2:SetOperation(c98910505.disop)
c:RegisterEffect(e2)
--destory
local e4=Effect.CreateEffect(c)
e4:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e4:SetType(EFFECT_TYPE_QUICK_O)
e4:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e4:SetCode(EVENT_FREE_CHAIN)
e4:SetRange(LOCATION_SZONE)
e4:SetCountLimit(1,98910505)
e4:SetCost(c98910505.descost)
e4:SetTarget(c98910505.destg)
e4:SetOperation(c98910505.desop)
c:RegisterEffect(e4)
end
function c98910505.desfilter(c)
return c:IsSetCard(0x980) and c:IsFaceup()
end
function c98910505.discon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and Duel.IsChainNegatable(ev) and Duel.GetMatchingGroupCount(c98910505.desfilter,tp,LOCATION_MZONE,0,nil)>0
end
function c98910505.discost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) and e:GetHandler():IsAbleToRemoveAsCost() end
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
Duel.Remove(e:GetHandler(),nil,REASON_COST)
end
function c98910505.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
if re:GetHandler():IsDestructable() and re:GetHandler():IsRelateToEffect(re) then
Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,1,0,0)
end
end
function c98910505.disop(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if Duel.Destroy(eg,REASON_EFFECT)~=0 then
local tc=eg:GetFirst()
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_TRIGGER)
e1:SetReset(RESET_EVENT+0x1fe0000)
tc:RegisterEffect(e1) end end
end
function c98910505.desfilter(c)
return c:IsCode(98910501) and c:IsFaceup()
end
function c98910505.desfilter1(c)
return c:IsCode(98910507) and c:IsFaceup() and not c:IsDisabled()
end
function c98910505.descost(e,tp,eg,ep,ev,re,r,rp,chk)
local b=0
if Duel.IsExistingMatchingCard(c98910505.desfilter1,tp,LOCATION_ONFIELD,0,1,nil) then b=b+1 end
local a=0
local g=Duel.GetMatchingGroup(c98910505.desfilter,tp,LOCATION_ONFIELD,0,1,nil)
local tg=g:GetFirst()
while tg do
if tg:IsAbleToGraveAsCost() then a=a+1 end
tg=g:GetNext()
end
if chk==0 then return (Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) or (a>0 and b>0) ) and e:GetHandler():IsAbleToGrave() end
if a>0 and b>0 then
if Duel.SelectYesNo(tp,aux.Stringid(98910505,0)) then
local sg=g:Select(tp,1,1,nil)
Duel.SendtoGrave(e:GetHandler()+sg,REASON_COST)
else
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
Duel.SendtoGrave(e:GetHandler(),REASON_COST)
end
else
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
Duel.SendtoGrave(e:GetHandler(),REASON_COST)
end
end
function c98910505.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(nil,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,tp,LOCATION_ONFIELD)
end
function c98910505.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,nil,tp,0,LOCATION_ONFIELD,1,1,nil)
local tc=g:GetFirst()
if g:GetCount()>0 then
if Duel.Destroy(g,REASON_EFFECT)~=0 then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_TRIGGER)
e1:SetReset(RESET_EVENT+0x1fe0000)
tc:RegisterEffect(e1) end
end
end
\ No newline at end of file
--武林绝掌 降龙八荒掌
function c98910506.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetTarget(c98910506.target)
e1:SetOperation(c98910506.activate)
c:RegisterEffect(e1)
end
function c98910506.filter(c)
return c:IsSetCard(0x980) and c:IsFaceup()
end
function c98910506.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(c98910506.filter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c98910506.filter,tp,LOCATION_MZONE,0,1,1,nil)
end
function c98910506.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local rc=Duel.GetFirstTarget()
if not rc then return end
local e1=Effect.CreateEffect(rc)
e1:SetDescription(aux.Stringid(98910506,0))
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT+EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_EXTRA_ATTACK_MONSTER)
e1:SetValue(7)
e1:SetCondition(c98910506.condition)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e1,true)
--damage
local e2=Effect.CreateEffect(rc)
e2:SetCategory(CATEGORY_DAMAGE)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_UNCOPYABLE)
e2:SetCode(EVENT_BATTLE_DESTROYING)
e2:SetCondition(c98910506.damcon)
e2:SetTarget(c98910506.damtg)
e2:SetOperation(c98910506.damop)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e2,true)
end
function c98910506.condition(e)
return e:GetHandler():GetEquipCount()==0
end
function c98910506.damcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsRelateToBattle() and c:GetBattleTarget():IsType(TYPE_MONSTER)
end
function c98910506.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local bc=e:GetHandler():GetBattleTarget()
local dam=math.floor(bc:GetBaseAttack()/2)
Duel.SetTargetCard(bc)
Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(dam)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,dam)
end
function c98910506.damop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
local dam=math.floor(tc:GetBaseAttack()/2)
Duel.Damage(p,dam,REASON_EFFECT)
end
end
--剑-
function c98910507.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CONTINUOUS_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c98910507.target)
e1:SetOperation(c98910507.operation)
c:RegisterEffect(e1)
--equip limit
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_EQUIP_LIMIT)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetValue(c98910507.eqlimit)
c:RegisterEffect(e2)
--atk
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_EQUIP)
e3:SetCode(EFFECT_UPDATE_ATTACK)
e3:SetValue(1000)
c:RegisterEffect(e3)
--tograve
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(98910507,0))
e4:SetCategory(CATEGORY_DESTROY+CATEGORY_DRAW+CATEGORY_REMOVE)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetProperty(EFFECT_FLAG_DELAY)
e4:SetCode(EVENT_TO_GRAVE)
e4:SetCountLimit(1,98910511)
e4:SetCondition(c98910507.descon)
e4:SetTarget(c98910507.destg)
e4:SetOperation(c98910507.desop)
c:RegisterEffect(e4)
local e5=e4:Clone()
e5:SetDescription(aux.Stringid(98910507,1))
e5:SetCategory(CATEGORY_DRAW)
e5:SetCondition(c98910507.drcon)
e5:SetTarget(c98910507.drtg)
e5:SetOperation(c98910507.drop)
c:RegisterEffect(e5)
local e6=e4:Clone()
e6:SetDescription(aux.Stringid(98910507,2))
e6:SetCategory(CATEGORY_REMOVE)
e6:SetCondition(c98910507.rmcon)
e6:SetTarget(c98910507.rmtg)
e6:SetOperation(c98910507.rmop)
c:RegisterEffect(e6)
end
function c98910507.eqlimit(e,c)
return c:IsSetCard(0x980)
end
function c98910507.filter(c)
return c:IsFaceup() and c:IsSetCard(0x980)
end
function c98910507.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c98910507.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c98910507.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
Duel.SelectTarget(tp,c98910507.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
end
function c98910507.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() then
Duel.Equip(tp,c,tc)
end
end
function c98910507.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_ONFIELD,0,1,nil,0x980)
end
function c98910507.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(nil,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,1-tp,LOCATION_ONFIELD)
end
function c98910507.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,nil,tp,0,LOCATION_ONFIELD,1,1,nil)
if g:GetCount()>0 then
Duel.Destroy(g,REASON_EFFECT)
end
end
function c98910507.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_HAND) and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_ONFIELD,0,1,nil,0x980)
end
function c98910507.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
end
function c98910507.drop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT)
end
function c98910507.rmcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_DECK) and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_ONFIELD,0,1,nil,0x980)
end
function c98910507.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 end
Duel.SetTargetPlayer(tp)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,0,1-tp,LOCATION_HAND)
end
function c98910507.rmop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
local g=Duel.GetFieldGroup(p,0,LOCATION_HAND)
if g:GetCount()>0 then
Duel.ConfirmCards(p,g)
Duel.Hint(HINT_SELECTMSG,p,HINTMSG_DISCARD)
local sg=g:Select(p,1,1,nil)
if Duel.Remove(sg,POS_FACEUP,REASON_EFFECT+REASON_TEMPORARY)~=0 then
local fid=c:GetFieldID()
local og=Duel.GetOperatedGroup()
local oc=og:GetFirst()
while oc do
oc:RegisterFlagEffect(98910507,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_OPPO_TURN,0,1,fid)
oc=og:GetNext()
end
og:KeepAlive()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetLabel(fid)
e1:SetLabelObject(og)
e1:SetCondition(c98910507.retcon)
e1:SetOperation(c98910507.retop)
e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN)
Duel.RegisterEffect(e1,tp)
end
Duel.ShuffleHand(1-p)
end
end
function c98910507.retfilter(c,fid)
return c:GetFlagEffectLabel(98910507)==fid
end
function c98910507.retcon(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetTurnPlayer()==tp then return false end
local g=e:GetLabelObject()
if not g:IsExists(c98910507.retfilter,1,nil,e:GetLabel()) then
g:DeleteGroup()
e:Reset()
return false
else return true end
end
function c98910507.retop(e,tp,eg,ep,ev,re,r,rp)
local g=e:GetLabelObject()
local sg=g:Filter(c98910507.retfilter,nil,e:GetLabel())
g:DeleteGroup()
local tc=sg:GetFirst()
while tc do
if tc==e:GetHandler() then
Duel.ReturnToField(tc)
else
Duel.SendtoHand(tc,tc:GetPreviousControler(),REASON_EFFECT)
end
tc=sg:GetNext()
end
end
\ No newline at end of file
--武林绝剑 飞雪剑决
function c98910508.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetTarget(c98910508.target)
e1:SetOperation(c98910508.activate)
c:RegisterEffect(e1)
end
function c98910508.filter(c)
return c:IsSetCard(0x980) and c:IsFaceup()
end
function c98910508.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(c98910508.filter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c98910508.filter,tp,LOCATION_MZONE,0,1,1,nil)
end
function c98910508.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local rc=Duel.GetFirstTarget()
if not rc then return end
local e1=Effect.CreateEffect(rc)
e1:SetDescription(aux.Stringid(98910508,0))
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT+EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_EXTRA_ATTACK_MONSTER)
e1:SetCondition(c98910508.condition)
e1:SetValue(5)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e1,true)
local e2=Effect.CreateEffect(rc)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_UNCOPYABLE)
e2:SetRange(LOCATION_MZONE)
e2:SetCode(EFFECT_BATTLE_DESTROY_REDIRECT)
e2:SetValue(LOCATION_REMOVED)
e2:SetCondition(c98910508.condition)
rc:RegisterEffect(e2,true)
local e3=Effect.CreateEffect(rc)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_UNCOPYABLE)
e3:SetCode(EFFECT_CANNOT_ACTIVATE)
e3:SetRange(LOCATION_MZONE)
e3:SetTargetRange(0,1)
e3:SetValue(1)
e3:SetCondition(c98910508.actcon)
rc:RegisterEffect(e3,true)
end
function c98910508.actcon(e)
return Duel.GetAttacker()==e:GetHandler()
end
function c98910508.cfilter(c)
return c:IsFaceup() and c:IsCode(98910507)
end
function c98910508.condition(e)
return e:GetHandler():GetEquipGroup():IsExists(c98910508.cfilter,1,nil)
end
\ No newline at end of file
--武林绝内 太白经
function c98910509.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetTarget(c98910509.target)
e1:SetOperation(c98910509.activate)
c:RegisterEffect(e1)
end
function c98910509.filter(c)
return c:IsSetCard(0x980) and c:IsFaceup()
end
function c98910509.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(c98910509.filter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c98910509.filter,tp,LOCATION_MZONE,0,1,1,nil)
end
function c98910509.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local rc=Duel.GetFirstTarget()
if not rc then return end
local e1=Effect.CreateEffect(rc)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(500)
e1:SetCondition(c98910509.condition1)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e1,true)
local e2=Effect.CreateEffect(rc)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_UNCOPYABLE)
e2:SetRange(LOCATION_MZONE)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetValue(2000)
e2:SetCondition(c98910509.condition)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e2,true)
local e3=Effect.CreateEffect(rc)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetDescription(aux.Stringid(98910509,0))
e3:SetCode(EFFECT_IMMUNE_EFFECT)
e3:SetProperty(EFFECT_FLAG_CLIENT_HINT+EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_UNCOPYABLE)
e3:SetRange(LOCATION_MZONE)
e3:SetValue(c98910509.efilter)
e3:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e3,true)
local e4=Effect.CreateEffect(rc)
e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetCode(EFFECT_IMMUNE_EFFECT)
e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_UNCOPYABLE)
e4:SetRange(LOCATION_MZONE)
e4:SetValue(c98910509.efilter1)
e4:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e4,true)
local e5=Effect.CreateEffect(rc)
e5:SetDescription(aux.Stringid(98910509,1))
e5:SetType(EFFECT_TYPE_IGNITION)
e5:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e5:SetRange(LOCATION_MZONE)
e5:SetCountLimit(1)
e5:SetCode(EFFECT_UPDATE_ATTACK)
e5:SetTarget(c98910509.attg)
e5:SetOperation(c98910509.atop)
e5:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e5,true)
end
function c98910509.cfilter(c)
return c:IsFaceup() and c:IsCode(98910507)
end
function c98910509.condition(e)
local c=e:GetHandler()
return c:GetEquipGroup():IsExists(c98910509.cfilter,1,nil)
end
function c98910509.condition1(e)
return e:GetHandler():GetEquipCount()==0
end
function c98910509.efilter(e,te)
if te:IsActiveType(TYPE_MONSTER) and te:IsActivated() then
local lv=e:GetHandler():GetAttack()
local ec=te:GetOwner()
return ec:GetAttack()<lv
end
end
function c98910509.efilter1(e,te)
return te:IsActiveType(TYPE_TRAP) and te:IsActivated()
end
function c98910509.atkfilter(c)
return c:IsFaceup()
end
function c98910509.attg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingTarget(c98910509.atkfilter,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c98910509.atkfilter,tp,0,LOCATION_MZONE,1,1,nil)
end
function c98910509.atop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc and c:IsRelateToEffect(e) and c:IsFaceup() then
local atk=tc:GetAttack()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(atk)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE+RESET_PHASE+PHASE_END)
c:RegisterEffect(e1)
end
end
\ No newline at end of file
--武林绝内 十象般若功
function c98910510.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetTarget(c98910510.target)
e1:SetOperation(c98910510.activate)
c:RegisterEffect(e1)
end
function c98910510.filter(c)
return c:IsSetCard(0x980) and c:IsFaceup()
end
function c98910510.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(c98910510.filter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c98910510.filter,tp,LOCATION_MZONE,0,1,1,nil)
end
function c98910510.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local rc=Duel.GetFirstTarget()
if not rc then return end
local e1=Effect.CreateEffect(rc)
e1:SetDescription(aux.Stringid(98910510,0))
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT+EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_PIERCE)
e1:SetValue(DOUBLE_DAMAGE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e1,true)
local e2=Effect.CreateEffect(rc)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_UNCOPYABLE)
e2:SetRange(LOCATION_MZONE)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetValue(500)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e2,true)
local e3=Effect.CreateEffect(rc)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_IMMUNE_EFFECT)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_UNCOPYABLE)
e3:SetRange(LOCATION_MZONE)
e3:SetValue(c98910510.efilter)
e3:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e3,true)
end
function c98910510.efilter(e,te)
if te:IsActiveType(TYPE_MONSTER) and te:IsActivated() then
local lv=e:GetHandler():GetAttack()
local ec=te:GetOwner()
return ec:GetAttack()<lv
end
end
--武林绝内 混元功
function c98910511.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetTarget(c98910511.target)
e1:SetOperation(c98910511.activate)
c:RegisterEffect(e1)
end
function c98910511.filter(c)
return c:IsSetCard(0x980) and c:IsFaceup()
end
function c98910511.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(c98910511.filter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c98910511.filter,tp,LOCATION_MZONE,0,1,1,nil)
end
function c98910511.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local rc=Duel.GetFirstTarget()
if not rc then return end
local e1=Effect.CreateEffect(rc)
e1:SetDescription(aux.Stringid(98910511,0))
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT+EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_EXTRA_ATTACK)
e1:SetValue(1)
e1:SetCondition(c98910511.condition)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e1,true)
local e2=Effect.CreateEffect(rc)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_UNCOPYABLE)
e2:SetRange(LOCATION_MZONE)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetValue(1500)
e2:SetCondition(c98910511.condition)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e2,true)
local e3=Effect.CreateEffect(rc)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_IMMUNE_EFFECT)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_UNCOPYABLE)
e3:SetRange(LOCATION_MZONE)
e3:SetValue(c98910511.efilter)
e3:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e3,true)
end
function c98910511.condition(e)
return e:GetHandler():GetEquipCount()==0
end
function c98910511.efilter(e,te)
if te:IsActiveType(TYPE_MONSTER) and te:IsActivated() then
local lv=e:GetHandler():GetAttack()
local ec=te:GetOwner()
return ec:GetAttack()<lv
end
end
\ No newline at end of file
--武林绝内 雄霸天下刀法
function c98910512.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetTarget(c98910512.target)
e1:SetOperation(c98910512.activate)
c:RegisterEffect(e1)
end
function c98910512.filter(c)
return c:IsSetCard(0x980) and c:IsFaceup()
end
function c98910512.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(c98910512.filter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c98910512.filter,tp,LOCATION_MZONE,0,1,1,nil)
end
function c98910512.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local rc=Duel.GetFirstTarget()
if not rc then return end
local e1=Effect.CreateEffect(rc)
e1:SetDescription(aux.Stringid(98910512,0))
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT+EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_CHANGE_BATTLE_DAMAGE)
e1:SetCondition(c98910512.damcon)
e1:SetValue(aux.ChangeBattleDamage(1,DOUBLE_DAMAGE))
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e1,true)
local e2=Effect.CreateEffect(rc)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_UPDATE_DEFENSE)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(0,LOCATION_MZONE)
e2:SetCondition(c98910512.condition)
e2:SetValue(-2000)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e2,true)
local e3=Effect.CreateEffect(rc)
e3:SetDescription(aux.Stringid(98910512,1))
e3:SetCategory(CATEGORY_DISABLE)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_UNCOPYABLE)
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_FREE_CHAIN)
e3:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetTarget(c98910512.target1)
e3:SetOperation(c98910512.operation)
e3:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e3)
end
function c98910512.cfilter(c)
return c:IsFaceup() and c:IsCode(98910507)
end
function c98910512.damcon(e)
return e:GetHandler():GetBattleTarget()~=nil and e:GetHandler():GetEquipGroup():IsExists(c98910512.cfilter,1,nil)
end
function c98910512.condition(e)
local c=e:GetHandler()
return c:GetEquipGroup():IsExists(c98910512.cfilter,1,nil)
end
function c98910512.cfilter(c)
return c:IsPosition(POS_DEFENSE)
end
function c98910512.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_ONFIELD) and aux.NegateAnyFilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(aux.NegateAnyFilter,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE)
local g=Duel.SelectTarget(tp,aux.NegateAnyFilter,tp,0,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,LOCATION_ONFIELD,g,1,0,0)
end
function c98910512.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and not tc:IsDisabled() and tc:IsRelateToEffect(e) then
Duel.NegateRelatedChain(tc,RESET_TURN_SET)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE)
e1:SetValue(RESET_TURN_SET)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetValue(RESET_TURN_SET)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e2)
if tc:IsType(TYPE_TRAPMONSTER) then
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e3:SetCode(EFFECT_DISABLE_TRAPMONSTER)
e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e3)
end
if tc:IsType(TYPE_MONSTER) and not tc:IsPosition(POS_FACEUP_DEFENSE) and Duel.SelectYesNo(tp,aux.Stringid(98910512,1)) then
Duel.ChangePosition(tc,POS_FACEUP_DEFENSE) end
end
end
\ No newline at end of file
--刀
function c98910513.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CONTINUOUS_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c98910513.target)
e1:SetOperation(c98910513.operation)
c:RegisterEffect(e1)
--equip limit
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_EQUIP_LIMIT)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetValue(c98910513.eqlimit)
c:RegisterEffect(e2)
--atk
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_EQUIP)
e3:SetCode(EFFECT_UPDATE_ATTACK)
e3:SetValue(700)
c:RegisterEffect(e3)
--def
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_EQUIP)
e4:SetCode(EFFECT_UPDATE_DEFENSE)
e4:SetValue(300)
c:RegisterEffect(e4)
--immune
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_SINGLE)
e5:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e5:SetRange(LOCATION_SZONE)
e5:SetCode(EFFECT_IMMUNE_EFFECT)
e5:SetValue(c98910513.efilter)
c:RegisterEffect(e5)
end
function c98910513.efilter(e,re)
return e:GetOwnerPlayer()~=re:GetOwnerPlayer()
end
function c98910513.eqlimit(e,c)
return c:IsSetCard(0x980)
end
function c98910513.filter(c)
return c:IsFaceup() and c:IsSetCard(0x980)
end
function c98910513.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c98910513.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c98910513.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
Duel.SelectTarget(tp,c98910513.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
end
function c98910513.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() then
Duel.Equip(tp,c,tc)
end
end
\ No newline at end of file
--群侠聚金庸
function c98910514.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,98910514)
e1:SetOperation(c98910514.activate)
c:RegisterEffect(e1)
--atk
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x980))
e2:SetValue(c98910514.val)
c:RegisterEffect(e2)
--act qp in hand
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetCode(EFFECT_QP_ACT_IN_NTPHAND)
e4:SetRange(LOCATION_FZONE)
e4:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x980))
e4:SetTargetRange(LOCATION_HAND,0)
c:RegisterEffect(e4)
end
function c98910514.atkfilter(c)
return c:IsSetCard(0x980) and not c:IsPosition(POS_FACEDOWN)
end
function c98910514.val(e)
return Duel.GetMatchingGroupCount(c98910514.atkfilter,0,LOCATION_GRAVE+LOCATION_ONFIELD,0,c)*200
end
function c98910514.filter(c)
return c:IsSetCard(0x980) and c:IsAbleToHand() and c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c98910514.filter1(c)
return c:IsSetCard(0x980) and c:IsAbleToHand()
end
function c98910514.filter2(c)
return c:IsSetCard(0x980) and c:IsFaceup() and c:IsType(TYPE_MONSTER)
end
function c98910514.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsExistingMatchingCard(c98910514.filter2,tp,LOCATION_ONFIELD,0,1,nil) then
local g=Duel.GetMatchingGroup(c98910514.filter,tp,LOCATION_DECK,0,nil)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(98910514,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
else
local g=Duel.GetMatchingGroup(c98910514.filter1,tp,LOCATION_DECK,0,nil)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(98910514,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
end
--草木皆兵
function c98910515.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c98910515.cost)
e1:SetTarget(c98910515.target)
e1:SetOperation(c98910515.activate)
c:RegisterEffect(e1)
--destroy replace
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EFFECT_DESTROY_REPLACE)
e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,98910513)
e2:SetTarget(c98910515.reptg)
e2:SetValue(c98910515.repval)
e2:SetOperation(c98910515.repop)
c:RegisterEffect(e2)
end
function c98910515.repfilter(c,tp)
return c:IsFaceup() and c:IsSetCard(0x980) and c:IsType(TYPE_MONSTER)
and c:IsOnField() and c:IsControler(tp) and c:IsReason(REASON_EFFECT) and not c:IsReason(REASON_REPLACE)
end
function c98910515.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemove() and eg:IsExists(c98910515.repfilter,1,nil,tp) end
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c98910515.repval(e,c)
return c98910515.repfilter(c,e:GetHandlerPlayer())
end
function c98910515.repop(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT)
end
function c98910515.filter(c)
return c:IsSetCard(0x980) and c:IsAbleToGrave()
end
function c98910515.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c98910515.filter,tp,LOCATION_HAND,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c98910515.filter,tp,LOCATION_HAND,0,1,1,nil)
Duel.SendtoGrave(g,REASON_COST)
end
function c98910515.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,2) end
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(2)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2)
end
function c98910515.activate(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT)
end
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
# ◇作者已退群 # ◇作者已退群
# △作者虽在群内但已半年以上未出现 # △作者虽在群内但已半年以上未出现
#【以上两类作者的内容和公共区间内容一样随时都有可能下架】 #【以上两类作者的内容和公共区间内容一样随时都有可能下架】
# ▽作者虽在群内但已3个月以上未出现
#屋屋赛高【2024年9月30日前禁止投稿】 #屋屋赛高【2024年9月30日前禁止投稿】
...@@ -233,7 +234,7 @@ ...@@ -233,7 +234,7 @@
!counter 0x2fb0 梦境指示物 !counter 0x2fb0 梦境指示物
!counter 0x1fb1 深绿指示物 !counter 0x1fb1 深绿指示物
#冰精⑨ 2460890081 122 0x450-0x45f #冰精⑨ 2460890081 122 0x450-0x45f
!setname 0x451 神明吞噬者 !setname 0x451 神明吞噬者
!setname 0x453 神之仆从 !setname 0x453 神之仆从
...@@ -291,7 +292,7 @@ ...@@ -291,7 +292,7 @@
#Scarlet 3027246459 137 #Scarlet 3027246459 137
#仲村芽衣子 2736617510 141 #仲村芽衣子 2736617510 141
#named_with_hana 花舞少女 #named_with_hana 花舞少女
#Ruby 917770701 147 0x2e0-0x2ef #Ruby 917770701 147 0x2e0-0x2ef
...@@ -485,7 +486,7 @@ ...@@ -485,7 +486,7 @@
!setname 0x9c92 枝江 !setname 0x9c92 枝江
!setname 0xc99 ReLive !setname 0xc99 ReLive
#演示白板 178434020 210 0x600-0x60f #演示白板 178434020 210 0x600-0x60f
!setname 0x601 道明寺歌鈴 !setname 0x601 道明寺歌鈴
!setname 0x602 神崎兰子 !setname 0x602 神崎兰子
!setname 0x603 堀裕子 !setname 0x603 堀裕子
...@@ -533,8 +534,7 @@ ...@@ -533,8 +534,7 @@
!setname 0x36b 白马义从 !setname 0x36b 白马义从
#cm.YiLong_Bloodline 血裔 #cm.YiLong_Bloodline 血裔
#冥月凌 2102552959 231 0xf70-0xf7f #△冥月凌 2102552959 231 0xf70-0xf7f
#【2024年9月30日前禁止投稿】
!setname 0x3f71 轨迹 !setname 0x3f71 轨迹
!setname 0x5f71 /神气合一 !setname 0x5f71 /神气合一
!setname 0x6f71 废墟图书馆 !setname 0x6f71 废墟图书馆
...@@ -549,19 +549,19 @@ ...@@ -549,19 +549,19 @@
#屋弥仙那度 860116530 241 0x7b0-0x7bf #屋弥仙那度 860116530 241 0x7b0-0x7bf
!setname 0x7b0 法环 !setname 0x7b0 法环
#饭饭 78254385 245 0x390-0x39f #饭饭 78254385 245 0x390-0x39f
!setname 0x9390 猛毒性 !setname 0x9390 猛毒性
!counter 0x1391 辉光指示物 !counter 0x1391 辉光指示物
#“米”雾中消失的X 257569726 257 #“米”雾中消失的X 257569726 257
#SetCard_MXHunHuang 昏黄 #SetCard_MXHunHuang 昏黄
#格里芬生活部部长 2583980801 258 0x250-0x25f #格里芬生活部部长 2583980801 258 0x250-0x25f
!setname 0x251 战术少女 !setname 0x251 战术少女
!setname 0x252 融合势力 !setname 0x252 融合势力
!counter 0x251 过载指示物 !counter 0x251 过载指示物
#逸轩 1246660891 266 0xe50-0xe5f #逸轩 1246660891 266 0xe50-0xe5f
!setname 0xe51 颜彩 !setname 0xe51 颜彩
#胆小的兔子 2490482695 299 0x750-0x75f #胆小的兔子 2490482695 299 0x750-0x75f
...@@ -791,7 +791,7 @@ ...@@ -791,7 +791,7 @@
!counter 0x46e 天堂指示物 !counter 0x46e 天堂指示物
!counter 0x46f 明星指示物 !counter 0x46f 明星指示物
#海原 3398862193 339 0x9d0-0x9df #海原 3398862193 339 0x9d0-0x9df
!setname 0x9d2 魔楔 !setname 0x9d2 魔楔
!setname 0x9d3 岩筮 !setname 0x9d3 岩筮
!setname 0x9d5 蜃流 !setname 0x9d5 蜃流
...@@ -849,7 +849,7 @@ ...@@ -849,7 +849,7 @@
!setname 0x389 神隐 !setname 0x389 神隐
!counter 0x389 神隐指示物 !counter 0x389 神隐指示物
#苏雨 1534117212 391 0xd40-0xd4f #苏雨 1534117212 391 0xd40-0xd4f
!setname 0xd41 塔罗特博物馆 !setname 0xd41 塔罗特博物馆
!setname 0x3d41 逆塔罗特博物馆 !setname 0x3d41 逆塔罗特博物馆
!setname 0xd42 占星术物语 !setname 0xd42 占星术物语
...@@ -890,14 +890,14 @@ ...@@ -890,14 +890,14 @@
#cm.named_with_Youthberk 朱斯贝克 #cm.named_with_Youthberk 朱斯贝克
#AddCodeList(40009190) 刻神督导龙卡名记述 #AddCodeList(40009190) 刻神督导龙卡名记述
#雪鸮 3234454893 440 0x470-0x47f #雪鸮 3234454893 440 0x470-0x47f
!setname 0x470 血祭魇 !setname 0x470 血祭魇
!counter 0x1470 心慌指示物 !counter 0x1470 心慌指示物
#setname="MrsDice" 骰娘 #setname="MrsDice" 骰娘
#setname="MrsDice_Taught" 骰娘炼成 #setname="MrsDice_Taught" 骰娘炼成
#setname="MrsDice_Taught_Master" 骰娘之主 #setname="MrsDice_Taught_Master" 骰娘之主
#小青 475054511 457 0x880-0x88f #小青 475054511 457 0x880-0x88f
!setname 0x880 H×H !setname 0x880 H×H
!setname 0x5880 幻影旅团 !setname 0x5880 幻影旅团
!setname 0x881 极翼灵兽 !setname 0x881 极翼灵兽
...@@ -1343,7 +1343,7 @@ ...@@ -1343,7 +1343,7 @@
!setname 0xa9c0 大罪之器 !setname 0xa9c0 大罪之器
!setname 0xb9c0 Evillious !setname 0xb9c0 Evillious
#黑夜童谣 912052555 780 0x780-0x78f #黑夜童谣 912052555 780 0x780-0x78f
!setname 0x780 伪神域 !setname 0x780 伪神域
#幻灵~eidoion 3371467150 791 0xa10-0xa1f #幻灵~eidoion 3371467150 791 0xa10-0xa1f
...@@ -1480,9 +1480,6 @@ ...@@ -1480,9 +1480,6 @@
!setname 0x67e0 研讨会 !setname 0x67e0 研讨会
!counter 0x7e0 奇迹指示物 !counter 0x7e0 奇迹指示物
#孟德 2974765951 989 0x980-0x98f
!setname 0x980 武林
#公用区间 986 0x870-0x87f #公用区间 986 0x870-0x87f
##柚木梨沙 1141457733 000-200 ##柚木梨沙 1141457733 000-200
!setname 0x870 少女分形 !setname 0x870 少女分形
......
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