Commit 72daa42a authored by TanakaKotoha's avatar TanakaKotoha

tnndx

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