Commit 3e685d40 authored by Tachibana's avatar Tachibana

ndyd

parent 5c20f6ab
......@@ -59,7 +59,7 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
ex:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
ex:SetTargetRange(LOCATION_HAND,LOCATION_HAND)
ex:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
ex1:SetTarget(function(e,c)
ex:SetTarget(function(e,c)
return c:GetFlagEffect(m)>0 and c:IsPublic()
end)
Duel.RegisterEffect(ex,tp)
......
......@@ -10,7 +10,7 @@ function c20000000.initial_effect(c)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(20000000,0))
e2:SetCategory(CATEGORY_HANDES+CATEGORY_SEARCH)
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCountLimit(1)
e2:SetRange(LOCATION_MZONE)
......
......@@ -8,7 +8,7 @@ function c20000002.initial_effect(c)
--SearchCard
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(20000002,0))
e2:SetCategory(CATEGORY_SEARCH)
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCountLimit(1)
e2:SetRange(LOCATION_FZONE)
......
--对过去的告别
function c20000004.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_SPECIAL_SUMMON)
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
......@@ -37,10 +37,11 @@ function c20000004.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c20000004.op1(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
local g=Duel.GetMatchingGroup(c20000004.tgf1,tp,LOCATION_DECK,0,nil)
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c20000004.tgf1,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 and Duel.Destroy(tc,REASON_EFFECT)~=0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c20000004.tgf1,tp,LOCATION_DECK,0,1,1,nil,e,tp)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
......
......@@ -23,7 +23,7 @@ function c20000006.initial_effect(c)
e3:SetOperation(c20000006.op3)
c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c)
e4:SetCategory(CATEGORY_TOHAND+CATEGORY_REMOVE+CATEGORY_SEARCH)
e4:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e4:SetType(EFFECT_TYPE_QUICK_O)
e4:SetCode(EVENT_FREE_CHAIN)
e4:SetRange(LOCATION_GRAVE)
......
......@@ -6,7 +6,7 @@ function c20000011.initial_effect(c)
e1:SetHintTiming(0,TIMING_END_PHASE)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_REMOVE+CATEGORY_SEARCH)
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetHintTiming(0,TIMING_END_PHASE)
......
......@@ -6,7 +6,7 @@ function c20000012.initial_effect(c)
e1:SetHintTiming(0,TIMING_END_PHASE)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_REMOVE)
e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetHintTiming(0,TIMING_END_PHASE)
......
......@@ -107,8 +107,8 @@ end
function cm.tgfilter(e,c)
return c:IsSetCard(0xa341) and c:IsLocation(LOCATION_MZONE)
end
function cm.imfilter(e,re)
return e:GetOwnerPlayer()~=re:GetOwnerPlayer()and not e:GetHandler():GetColumnGroup():IsContains(re:GetHandler())
function cm.imfilter(e,c)
return not e:GetHandler():GetColumnGroup():IsContains(c)
end
function cm.stcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -17,7 +17,7 @@ function c33711104.initial_effect(c)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCountLimit(1,33711104)
e1:SetTarget(c33711104.thtg)
e1:SetOperation(c33711104.thop)
c:RegisterEffect(e1)
......
......@@ -42,7 +42,7 @@ function cm.initial_effect(c)
end
cm.setname="Devildiocese"
function cm.aclimit0(e,re,tp)
return re:GetHandler():GetRace()~=RACE_FIEND
return not re:GetHandler():IsRace(RACE_FIEND)
end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
......
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