Commit a097fe7b authored by wind2009's avatar wind2009

Fix サイバース・コード・マジシャン

parent 5ab60cdc
Pipeline #42551 canceled with stages
in 3 seconds
...@@ -41,7 +41,7 @@ function s.tgcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,7 +41,7 @@ function s.tgcon(e,tp,eg,ep,ev,re,r,rp)
if c:IsLocation(LOCATION_GRAVE) and c:IsPreviousLocation(LOCATION_ONFIELD+LOCATION_HAND) then if c:IsLocation(LOCATION_GRAVE) and c:IsPreviousLocation(LOCATION_ONFIELD+LOCATION_HAND) then
if c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_RITUAL) then if c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_RITUAL) then
e:SetLabel(1) e:SetLabel(1)
c:RegisterFlagEffect(0,RESET_CHAIN,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(id,2)) c:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD+RESET_CHAIN,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(id,2))
end end
return true return true
else else
...@@ -54,15 +54,14 @@ function s.tgfilter(c,e,tp,label) ...@@ -54,15 +54,14 @@ function s.tgfilter(c,e,tp,label)
or label>0 and ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)) or label>0 and ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false))
end end
function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local label=e:GetLabel() local label=e:GetLabel()
if chk==0 then return Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_DECK,0,1,nil,e,tp,label) end
if label>0 then if label>0 then
e:SetCategory(CATEGORY_TOGRAVE+CATEGORY_SPECIAL_SUMMON) e:SetCategory(CATEGORY_TOGRAVE+CATEGORY_SPECIAL_SUMMON)
else else
e:SetCategory(CATEGORY_TOGRAVE) e:SetCategory(CATEGORY_TOGRAVE)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
end end
if chk==0 then return Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_DECK,0,1,nil,e,tp,label) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
end end
function s.tgop(e,tp,eg,ep,ev,re,r,rp) function s.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
......
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