Commit 90a50f82 authored by mercury233's avatar mercury233

new card LVP2-JP016

parent a652ee7c
...@@ -19,6 +19,7 @@ function c12171659.initial_effect(c) ...@@ -19,6 +19,7 @@ function c12171659.initial_effect(c)
e2:SetCondition(c12171659.descon) e2:SetCondition(c12171659.descon)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c12171659.card_code_list={56433456}
function c12171659.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c12171659.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAbleToGraveAsCost() and c:IsDiscardable() end if chk==0 then return c:IsAbleToGraveAsCost() and c:IsDiscardable() end
......
...@@ -37,6 +37,7 @@ function c12510878.initial_effect(c) ...@@ -37,6 +37,7 @@ function c12510878.initial_effect(c)
e5:SetCode(EFFECT_UPDATE_DEFENSE) e5:SetCode(EFFECT_UPDATE_DEFENSE)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
c12510878.card_code_list={56433456}
function c12510878.spcon(e,c) function c12510878.spcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.CheckReleaseGroup(c:GetControler(),Card.IsCode,1,nil,18036057) return Duel.CheckReleaseGroup(c:GetControler(),Card.IsCode,1,nil,18036057)
......
...@@ -50,6 +50,7 @@ function c15449853.initial_effect(c) ...@@ -50,6 +50,7 @@ function c15449853.initial_effect(c)
e7:SetOperation(c15449853.tdop) e7:SetOperation(c15449853.tdop)
c:RegisterEffect(e7) c:RegisterEffect(e7)
end end
c15449853.card_code_list={56433456}
function c15449853.tdfilter(c,e) function c15449853.tdfilter(c,e)
return (c:IsRace(RACE_FAIRY) or c:IsType(TYPE_COUNTER)) and c:IsAbleToDeck() and (not e or c:IsCanBeEffectTarget(e)) return (c:IsRace(RACE_FAIRY) or c:IsType(TYPE_COUNTER)) and c:IsAbleToDeck() and (not e or c:IsCanBeEffectTarget(e))
end end
......
...@@ -27,6 +27,7 @@ function c18378582.initial_effect(c) ...@@ -27,6 +27,7 @@ function c18378582.initial_effect(c)
e3:SetOperation(c18378582.desop) e3:SetOperation(c18378582.desop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c18378582.card_code_list={56433456}
function c18378582.rfilter(c,code) function c18378582.rfilter(c,code)
return c:IsFaceup() and c:IsCode(code) return c:IsFaceup() and c:IsCode(code)
end end
......
...@@ -26,6 +26,7 @@ function c28573958.initial_effect(c) ...@@ -26,6 +26,7 @@ function c28573958.initial_effect(c)
e2:SetOperation(c28573958.spop) e2:SetOperation(c28573958.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c28573958.card_code_list={56433456}
function c28573958.cfilter1(c) function c28573958.cfilter1(c)
return c:IsSetCard(0x44) and c:IsAbleToRemoveAsCost() return c:IsSetCard(0x44) and c:IsAbleToRemoveAsCost()
end end
......
...@@ -12,6 +12,7 @@ function c44595286.initial_effect(c) ...@@ -12,6 +12,7 @@ function c44595286.initial_effect(c)
e1:SetOperation(c44595286.activate) e1:SetOperation(c44595286.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c44595286.card_code_list={56433456}
function c44595286.condition(e,tp,eg,ep,ev,re,r,rp) function c44595286.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsEnvironment(56433456) return Duel.IsEnvironment(56433456)
end end
......
--天空神騎士ロードパーシアス
function c48589580.initial_effect(c)
--link summon
c:EnableReviveLimit()
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkRace,RACE_FAIRY),2)
--tohand
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(48589580,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,48589580)
e1:SetCost(c48589580.thcost)
e1:SetTarget(c48589580.thtg)
e1:SetOperation(c48589580.thop)
c:RegisterEffect(e1)
--special summon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(48589580,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_TO_GRAVE)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,48589581)
e2:SetCondition(c48589580.spcon)
e2:SetCost(c48589580.spcost)
e2:SetTarget(c48589580.sptg)
e2:SetOperation(c48589580.spop)
c:RegisterEffect(e2)
end
c48589580.card_code_list={56433456}
function c48589580.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end
function c48589580.thfilter(c,thchk)
return (c:IsCode(56433456) or aux.IsCodeListed(c,56433456) or (thchk and c:IsRace(RACE_FAIRY))) and c:IsAbleToHand()
end
function c48589580.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local thchk=Duel.IsEnvironment(56433456)
if chk==0 then return Duel.IsExistingMatchingCard(c48589580.thfilter,tp,LOCATION_DECK,0,1,nil,thchk) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c48589580.thop(e,tp,eg,ep,ev,re,r,rp)
local thchk=Duel.IsEnvironment(56433456)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c48589580.thfilter,tp,LOCATION_DECK,0,1,1,nil,thchk)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
function c48589580.cfilter(c,tp)
return bit.band(c:GetPreviousRaceOnField(),RACE_FAIRY)~=0 and c:IsRace(RACE_FAIRY)
and c:GetPreviousControler()==tp and c:GetPreviousLocation()==LOCATION_MZONE and c:IsPreviousPosition(POS_FACEUP)
end
function c48589580.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c48589580.cfilter,1,nil,tp)
end
function c48589580.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(100)
return true
end
function c48589580.costfilter(c,e,tp)
local lv=c:GetLevel()
return lv>0 and c:IsRace(RACE_FAIRY) and Duel.IsExistingMatchingCard(c48589580.spfilter,tp,LOCATION_HAND,0,1,nil,lv+1,e,tp)
end
function c48589580.spfilter(c,lv,e,tp)
return c:IsLevelAbove(lv) and c:IsRace(RACE_FAIRY) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c48589580.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
if e:GetLabel()~=100 then return false end
e:SetLabel(0)
return Duel.IsExistingMatchingCard(c48589580.costfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local rg=Duel.SelectMatchingCard(tp,c48589580.costfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
e:SetLabel(rg:GetFirst():GetLevel())
Duel.Remove(rg,POS_FACEUP,REASON_COST)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
end
function c48589580.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local lv=e:GetLabel()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c48589580.spfilter,tp,LOCATION_HAND,0,1,1,nil,lv+1,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
...@@ -11,6 +11,7 @@ function c48783998.initial_effect(c) ...@@ -11,6 +11,7 @@ function c48783998.initial_effect(c)
e1:SetOperation(c48783998.operation) e1:SetOperation(c48783998.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c48783998.card_code_list={56433456}
function c48783998.condition(e,tp,eg,ep,ev,re,r,rp) function c48783998.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE) return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE)
end end
......
...@@ -8,6 +8,7 @@ function c49905576.initial_effect(c) ...@@ -8,6 +8,7 @@ function c49905576.initial_effect(c)
e1:SetOperation(c49905576.drop) e1:SetOperation(c49905576.drop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c49905576.card_code_list={56433456}
function c49905576.drop(e,tp,eg,ep,ev,re,r,rp) function c49905576.drop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not re:IsHasType(EFFECT_TYPE_ACTIVATE) or not re:IsActiveType(TYPE_COUNTER) or not c:IsLocation(LOCATION_MZONE) or not c:IsFaceup() then return end if not re:IsHasType(EFFECT_TYPE_ACTIVATE) or not re:IsActiveType(TYPE_COUNTER) or not c:IsLocation(LOCATION_MZONE) or not c:IsFaceup() then return end
......
...@@ -17,6 +17,7 @@ function c53666449.initial_effect(c) ...@@ -17,6 +17,7 @@ function c53666449.initial_effect(c)
e1:SetOperation(c53666449.atkop) e1:SetOperation(c53666449.atkop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c53666449.card_code_list={56433456}
function c53666449.atkcon(e,tp,eg,ep,ev,re,r,rp) function c53666449.atkcon(e,tp,eg,ep,ev,re,r,rp)
return re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_COUNTER) and e:GetHandler():GetFlagEffect(1)>0 return re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_COUNTER) and e:GetHandler():GetFlagEffect(1)>0
end end
......
...@@ -22,6 +22,7 @@ function c55794644.initial_effect(c) ...@@ -22,6 +22,7 @@ function c55794644.initial_effect(c)
e2:SetOperation(c55794644.operation) e2:SetOperation(c55794644.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c55794644.card_code_list={56433456}
function c55794644.spfilter(c) function c55794644.spfilter(c)
return c:IsSetCard(0x44) and c:IsAbleToRemoveAsCost() and (not c:IsLocation(LOCATION_MZONE) or c:IsFaceup()) return c:IsSetCard(0x44) and c:IsAbleToRemoveAsCost() and (not c:IsLocation(LOCATION_MZONE) or c:IsFaceup())
end end
......
...@@ -10,6 +10,7 @@ function c81066751.initial_effect(c) ...@@ -10,6 +10,7 @@ function c81066751.initial_effect(c)
e4:SetOperation(c81066751.activate) e4:SetOperation(c81066751.activate)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
c81066751.card_code_list={56433456}
function c81066751.cfilter(c) function c81066751.cfilter(c)
return c:IsFaceup() and c:IsCode(56433456) return c:IsFaceup() and c:IsCode(56433456)
end end
......
...@@ -12,6 +12,7 @@ function c84177693.initial_effect(c) ...@@ -12,6 +12,7 @@ function c84177693.initial_effect(c)
e1:SetOperation(c84177693.recop) e1:SetOperation(c84177693.recop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c84177693.card_code_list={56433456}
function c84177693.reccon(e,tp,eg,ep,ev,re,r,rp) function c84177693.reccon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsReason(REASON_BATTLE) and Duel.IsEnvironment(56433456) return not e:GetHandler():IsReason(REASON_BATTLE) and Duel.IsEnvironment(56433456)
end end
......
...@@ -20,6 +20,7 @@ function c91123920.initial_effect(c) ...@@ -20,6 +20,7 @@ function c91123920.initial_effect(c)
e3:SetCode(EFFECT_UPDATE_DEFENSE) e3:SetCode(EFFECT_UPDATE_DEFENSE)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c91123920.card_code_list={56433456}
function c91123920.efilter(e,te) function c91123920.efilter(e,te)
return te:IsActiveType(TYPE_SPELL) return te:IsActiveType(TYPE_SPELL)
end end
......
...@@ -10,6 +10,7 @@ function c91188343.initial_effect(c) ...@@ -10,6 +10,7 @@ function c91188343.initial_effect(c)
e1:SetOperation(c91188343.op) e1:SetOperation(c91188343.op)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c91188343.card_code_list={56433456}
function c91188343.filter1(c) function c91188343.filter1(c)
return c:IsSetCard(0x44) and c:GetCode()~=91188343 and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x44) and c:GetCode()~=91188343 and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
......
...@@ -12,6 +12,7 @@ function c91345518.initial_effect(c) ...@@ -12,6 +12,7 @@ function c91345518.initial_effect(c)
e1:SetOperation(c91345518.damop) e1:SetOperation(c91345518.damop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c91345518.card_code_list={56433456}
function c91345518.damcost(e,tp,eg,ep,ev,re,r,rp,chk) function c91345518.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCurrentPhase()~=PHASE_MAIN2 and e:GetHandler():IsReleasable() end if chk==0 then return Duel.GetCurrentPhase()~=PHASE_MAIN2 and e:GetHandler():IsReleasable() end
Duel.Release(e:GetHandler(),REASON_COST) Duel.Release(e:GetHandler(),REASON_COST)
......
...@@ -19,6 +19,7 @@ function c97750534.initial_effect(c) ...@@ -19,6 +19,7 @@ function c97750534.initial_effect(c)
e2:SetOperation(c97750534.tgop) e2:SetOperation(c97750534.tgop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c97750534.card_code_list={56433456}
function c97750534.spcon(e,c) function c97750534.spcon(e,c)
if c==nil then return Duel.IsEnvironment(56433456) end if c==nil then return Duel.IsEnvironment(56433456) end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
......
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