Commit 8dfd9f58 authored by mercury233's avatar mercury233

add new card

parent 67c04acf
#created by ...
#main
100415001
100415002
100415003
100415004
100415009
100415010
100415011
100415012
100415013
100415014
100415017
100415018
100415019
100415020
100415021
100415022
100415023
100415024
100415025
100415026
100415027
100415028
100415029
100415030
100415031
100415032
100415033
100415034
100415035
100415036
#extra
100415005
100415006
100415007
100415008
100415015
100415016
!side
...@@ -3,4 +3,5 @@ ...@@ -3,4 +3,5 @@
!setname 0x251 大贤者 !setname 0x251 大贤者
!setname 0x252 姬丝基勒 !setname 0x252 姬丝基勒
!setname 0x253 璃拉 !setname 0x253 璃拉
!setname 0x254 邪恶★双子 !setname 0x1254 直播☆双子
!setname 0x2254 邪恶★双子
--シークレット・パスフレーズ
--
--Script by JustFish
function c100415020.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,100415020+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c100415020.target)
e1:SetOperation(c100415020.activate)
c:RegisterEffect(e1)
end
function c100415020.thfilter(c)
return c:IsSetCard(0x1254,0x2254) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
end
function c100415020.thfilter1(c)
return c:IsSetCard(0x2254) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c100415020.scchk(c,sc)
return c:IsSetCard(sc) and c:IsFaceup()
end
function c100415020.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
local b1=Duel.IsExistingMatchingCard(c100415020.thfilter,tp,LOCATION_DECK,0,1,nil)
local b2=Duel.IsExistingMatchingCard(c100415020.thfilter1,tp,LOCATION_DECK,0,1,nil)
and Duel.IsExistingMatchingCard(c100415020.scchk,tp,LOCATION_MZONE,0,1,nil,0x252)
and Duel.IsExistingMatchingCard(c100415020.scchk,tp,LOCATION_MZONE,0,1,nil,0x253)
return b1 or b2
end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c100415020.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c100415020.thfilter,tp,LOCATION_DECK,0,1,nil)
if Duel.IsExistingMatchingCard(c100415020.scchk,tp,LOCATION_MZONE,0,1,nil,0x252)
and Duel.IsExistingMatchingCard(c100415020.scchk,tp,LOCATION_MZONE,0,1,nil,0x253) then
local eg=Duel.GetMatchingGroup(c100415020.thfilter1,tp,LOCATION_DECK,0,1,nil)
g:Merge(eg)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local tg=g:Select(tp,1,1,nil)
if #tg>0 then
Duel.SendtoHand(tg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tg)
end
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