Commit 36abda79 authored by Satty's avatar Satty

fix

parent 0196a13b
Pipeline #37212 passed with stage
in 4 minutes and 25 seconds
--绝念的少女 美纱
local m=10030081
local cm=_G["c"..m]
Duel.LoadScript("c10000100.lua")
xpcall(function() require("expansions/script/c10000100") end,function() require("script/c10000100") end)
function cm.initial_effect(c)
local e0=bo.base(c,m)
--destroy replace
......@@ -10,7 +10,6 @@ function cm.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetCode(EFFECT_DESTROY_REPLACE)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCondition(bo.base_condition)
e1:SetTarget(cm.reptg)
c:RegisterEffect(e1)
......@@ -19,6 +18,7 @@ function cm.initial_effect(c)
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetRange(LOCATION_MZONE)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCountLimit(1)
e2:SetCost(bo.base_cost)
e2:SetTarget(cm.thtg)
e2:SetOperation(cm.thop)
......
......@@ -8,7 +8,7 @@ function cm.initial_effect(c)
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetCode(EFFECT_CHANGE_CODE)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CAN_FORBIDDEN)
e0:SetValue(10070100)
e0:SetRange(LOCATION_MZONE)
e0:SetCondition(cm.condition)
......
......@@ -25,14 +25,14 @@ function cm.initial_effect(c)
local e4=rkch.MonzToPen(c,m,EVENT_RELEASE,false)
end
cm.dff=true
function cm.desfilter(c,ec)
function cm.descheck(c,ec)
return c:IsFaceup() and c:IsRace(RACE_WARRIOR) and c:GetColumnGroupCount()>0
end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
if chk==0 then return Duel.IsExistingTarget(cm.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
if chk==0 then return Duel.IsExistingTarget(cm.descheck,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.SelectTarget(tp,cm.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SelectTarget(tp,cm.descheck,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,0,0)
end
function cm.desop(e,tp)
......
......@@ -37,10 +37,10 @@ function s.initial_effect(c)
c:RegisterEffect(e4)
end
function s.cfilter(c)
return c:IsFaceup() and c.MoJin and c:IsType(TYPE_MONSTER)
return c:IsFaceup() and c.MoJin --and c:IsType(TYPE_MONSTER)
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil)
return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,nil)
......
This diff is collapsed.
......@@ -122,7 +122,7 @@ function c60151125.disop(e,tp,eg,ep,ev,re,r,rp)
rc:CancelToGrave()
Duel.Overlay(e:GetHandler(),Group.FromCards(rc))
else
return false
Duel.Overlay(e:GetHandler(),Group.FromCards(rc))
end
end
end
......
......@@ -47,7 +47,7 @@ end
function c60152302.e1tgfilter(c,tp)
local code=c:GetCode()
return c:IsFaceup() and c:IsSetCard(0xcb26) and c:IsType(TYPE_MONSTER)
and Duel.IsExistingTarget(c60152302.e1tgfilter2,tp,LOCATION_MZONE,0,1,nil,code)
and Duel.IsExistingMatchingCard(c60152302.e1tgfilter2,tp,LOCATION_MZONE,0,1,nil,code)
end
function c60152302.e1tgfilter2(c,code)
return c:IsFaceup() and c:IsSetCard(0xcb26) and c:IsType(TYPE_MONSTER)
......
--星海游侠 特拉
local m=60152306
local cm=_G["c"..m]
function cm.initial_effect(c)
function c60152306.initial_effect(c)
--spsummon
local e0=Effect.CreateEffect(c)
e0:SetDescription(aux.Stringid(60152306,0))
......@@ -51,7 +49,7 @@ end
function c60152306.e1tgfilter(c,e,tp)
local code=c:GetCode()
return c:IsFaceup() and c:IsSetCard(0xcb26) and c:IsType(TYPE_MONSTER)
and Duel.IsExistingTarget(c60152306.e1tgfilter2,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,code,e,tp)
and Duel.IsExistingMatchingCard(c60152306.e1tgfilter2,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,code,e,tp)
end
function c60152306.e1tgfilter2(c,code,e,tp)
return c:IsSetCard(0xcb26) and c:IsType(TYPE_MONSTER) and not c:IsCode(code)
......
......@@ -27,9 +27,12 @@ end
function s.filter2(c)
return c.setcard=="Abnormality" and c:IsType(TYPE_PENDULUM) and c:IsAbleToHand()
end
function s.filter22(g)
return g:IsExists(s.filter2,1,nil)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) and Duel.IsExistingMatchingCard(s.filter1,tp,LOCATION_DECK,0,1,nil) and Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_HAND)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,2,tp,LOCATION_DECK)
end
......@@ -39,12 +42,12 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,Card.IsDiscardable,tp,LOCATION_HAND,0,1,1,nil)
Duel.SendtoGrave(g,REASON_EFFECT+REASON_DISCARD)
-- 检索异想体怪兽
local g1=Duel.SelectMatchingCard(tp,s.filter1,tp,LOCATION_DECK,0,1,1,nil)
local g2=Duel.SelectMatchingCard(tp,s.filter2,tp,LOCATION_DECK,0,1,1,nil)
g1:Merge(g2)
if g1:GetCount()==2 then
Duel.SendtoHand(g1,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g1)
local g1=Duel.GetMatchingGroup(s.filter1,tp,LOCATION_DECK,0,nil)
local g2=g1:SelectSubGroup(tp,s.filter22,false,2,2)
if g2 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
Duel.SendtoHand(g2,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g2)
end
-- 检查灵摆区域并检索希望之光
local pzone=Duel.GetFieldCard(tp,LOCATION_PZONE,0) and Duel.GetFieldCard(tp,LOCATION_PZONE,1)
......
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