Commit 3bc287e0 authored by Nemo Ma's avatar Nemo Ma

fix

parent b6a3fd67
--幻旅传说·遭遇
--traveler saga encounter
--21.04.09
local m=11451400
local cm=_G["c"..m]
......@@ -31,7 +31,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local rc=eg:GetFirst()
if not rc:IsRelateToEffect(e) then return end
if not rc:IsRelateToEffect(e) or not Duel.IsPlayerCanSpecialSummon(tp) then return end
local g=Duel.GetFieldGroup(tp,LOCATION_EXTRA,0)
if #g>0 then
local tc=g:RandomSelect(1-tp,1):GetFirst()
......
--幻旅传说·激斗
--traveler saga clash
--21.04.10
local m=11451405
local cm=_G["c"..m]
......@@ -35,8 +35,9 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.HintSelection(sg)
local tc=sg:GetFirst()
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetDescription(aux.Stringid(m,0))
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CLIENT_HINT)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_IMMUNE_EFFECT)
e1:SetValue(cm.efilter)
......
--dragon-king palace,the crystal city
--dragon-king palace, the crystal city
local m=11451415
local cm=_G["c"..m]
function cm.initial_effect(c)
......@@ -51,11 +51,14 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=Duel.IsExistingMatchingCard(cm.sfilter2,tp,LOCATION_DECK,0,1,nil)
local b2=(Duel.GetCurrentPhase()~=PHASE_END)
if chk==0 then return true end
local op=0
if b1 then
local op=1
if b1 and b2 then
op=Duel.SelectOption(tp,aux.Stringid(m,0),aux.Stringid(m,1),aux.Stringid(m,2))
else
elseif b1 then
op=Duel.SelectOption(tp,aux.Stringid(m,0),aux.Stringid(m,1))
elseif b2 then
op=Duel.SelectOption(tp,aux.Stringid(m,1),aux.Stringid(m,2))+1
end
e:SetLabel(op)
......
......@@ -21,7 +21,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
--trap
local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_TODECK+CATEGORY_TOHAND)
e3:SetCategory(CATEGORY_TODECK+CATEGORY_TOHAND+CATEGORY_GRAVE_ACTION)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_SZONE)
e3:SetCountLimit(1,m)
......
......@@ -43,7 +43,7 @@ function c53701024.initial_effect(c)
c:RegisterEffect(e6)
end
function c53701024.cpfilter(c)
return c:IsType(TYPE_SPELL) and c:IsAbleToGraveAsCost()
return c:IsType(TYPE_SPELL) and c:IsAbleToGraveAsCost() and c:IsSetCard(0x3530)
and c:CheckActivateEffect(false,true,false)~=nil
end
function c53701024.cpcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -37,6 +37,7 @@ end
function c53701031.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleasable() end
Duel.Release(e:GetHandler(),REASON_COST)
e:GetHandler():RegisterFlagEffect(53701031,RESET_EVENT+RESETS_STANDARD,0,0)
end
function c53701031.filter(c,e,tp)
return c:IsSetCard(0x3530) and not c:IsCode(53701031) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......@@ -55,10 +56,9 @@ function c53701031.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(c53701031.filter),tp,LOCATION_GRAVE,0,nil,e,tp)
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tc=g:Select(tp,1,1,nil):GetFirst()
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
local sc=g:Select(tp,1,1,nil):GetFirst()
if sc then Duel.SpecialSummon(sc,0,tp,tp,false,false,POS_FACEUP) end
end
e:GetHandler():RegisterFlagEffect(53701031,RESET_EVENT+RESETS_STANDARD,0,0)
end
function c53701031.sumcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp and Duel.GetCurrentPhase()==PHASE_MAIN1
......
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