Commit 72daa42a authored by TanakaKotoha's avatar TanakaKotoha

tnndx

parent abe3633e
--天魔反转 猫耳的珈百璃·怀特 --天魔反转 猫耳的珈百璃·怀特
function c16101165.initial_effect(c) function c16101165.initial_effect(c)
aux.EnablePendulumAttribute(c,true) aux.EnablePendulumAttribute(c,true)
--------P effect --SearchCard
--SearchCard
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(16101165,0)) e1:SetDescription(aux.Stringid(16101165,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
...@@ -13,7 +12,7 @@ function c16101165.initial_effect(c) ...@@ -13,7 +12,7 @@ function c16101165.initial_effect(c)
e1:SetTarget(c16101165.thtg) e1:SetTarget(c16101165.thtg)
e1:SetOperation(c16101165.thop) e1:SetOperation(c16101165.thop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
------------Monster effect ------------Monster effect
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(16101165,1)) e2:SetDescription(aux.Stringid(16101165,1))
e2:SetCategory(CATEGORY_TOGRAVE) e2:SetCategory(CATEGORY_TOGRAVE)
...@@ -26,15 +25,15 @@ function c16101165.initial_effect(c) ...@@ -26,15 +25,15 @@ function c16101165.initial_effect(c)
e2:SetOperation(c16101165.tgop) e2:SetOperation(c16101165.tgop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c16101165.relfilter(c) function c16101165.relfilter(c,tp)
return c:IsRace(RACE_FAIRY) and Duel.IsExistingMatchingCard(c16101165.thfilter,tp,LOCATION_DECK,0,1,nil,c:GetAttack()) return c:IsRace(RACE_FAIRY) and Duel.IsExistingMatchingCard(c16101165.thfilter,tp,LOCATION_DECK,0,1,nil,c:GetAttack())
end end
function c16101165.thfilter(c,atk) function c16101165.thfilter(c,atk)
return c:IsAbleToHand() and c:IsAttackBelow(atk) and c:IsType(TYPE_MONSTER) and c:IsSetCard(0xa82) return c:IsAbleToHand() and c:IsAttackBelow(atk) and c:IsType(TYPE_MONSTER) and c:IsSetCard(0xa82)
end end
function c16101165.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c16101165.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c16101165.relfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,c16101165.relfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(tp,c16101165.relfilter,1,1,nil) local g=Duel.SelectReleaseGroup(tp,c16101165.relfilter,1,1,nil,tp)
e:SetLabel(g:GetFirst():GetAttack()) e:SetLabel(g:GetFirst():GetAttack())
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
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