Commit c361ff68 authored by Huangnan's avatar Huangnan

fix

parent 85107fbb
Pipeline #41202 failed with stages
in 5 minutes and 5 seconds
......@@ -102,7 +102,7 @@ end
function c11600555.con(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetLabelObject()
return c:GetFlagEffectLabel(11600555)==e:GetLabel()
and re:GetHandler():IsSetCard(0x546) and re:GetHandler()~=c
and re:GetHandler():IsSetCard(0x546) and re:IsActiveType(TYPE_MONSTER) and re:GetHandler()~=c
end
function c11600555.con2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetLabelObject()
......
......@@ -16,11 +16,10 @@ function s.initial_effect(c)
Duel.RegisterEffect(ge,0)
local ge1=Effect.GlobalEffect()
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_PHASE+PHASE_DRAW)
ge1:SetCode(EVENT_PREDRAW)
ge1:SetCondition(s.resetcon)
ge1:SetOperation(s.resetop)
Duel.RegisterEffect(ge1,0)
end
--五难题
local e1=Effect.CreateEffect(c)
......@@ -121,7 +120,7 @@ function s.geop(e,tp,eg,ep,ev,re,r,rp)
end
function s.resetcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnCount(tp)==1
return Duel.GetTurnCount(0)==1
end
function s.resetop(e,tp,eg,ep,ev,re,r,rp)
......@@ -138,8 +137,8 @@ function s.resetop(e,tp,eg,ep,ev,re,r,rp)
end
--五难题
function s.quecost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,s.attfilter,1,nil) end
local g=Duel.SelectReleaseGroup(tp,s.attfilter,1,1,nil)
if chk==0 then return Duel.CheckReleaseGroup(tp,nil,1,nil) end
local g=Duel.SelectReleaseGroup(tp,nil,1,1,nil)
e:SetLabel(g:GetFirst():GetAttribute())
Duel.Release(g,REASON_COST)
Duel.PayLPCost(tp,1000)
......@@ -165,7 +164,7 @@ end
function s.spcon(e)
local tp=e:GetHandler():GetOwner()
return Duel.GetFlagEffect(tp,13700777)>=0
return Duel.GetFlagEffect(tp,13700777)>=5
end
function s.sutg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -75,7 +75,7 @@ function s.tg2(e,tp,eg,ep,ev,re,r,rp,chk)
end
function s.op2(e,tp,eg,ep,ev,re,r,rp)
local g1=GetMatchingGroup(s.f4,tp,0,LOCATION_ONFIELD,nil)
local g1=Duel.GetMatchingGroup(s.f4,tp,0,LOCATION_ONFIELD,nil)
if g1:GetCount()>0 then
Duel.ConfirmCards(tp,g1)
end
......
......@@ -150,7 +150,7 @@ end
function s.tg4(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local g=Duel.GetMatchingGroup(s.f6,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
local g=Duel.GetMatchingGroup(s.f6,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,c:GetEquipTarget())
if chk==0 then return g:GetCount()>0 end
Duel.SetOperationInfo(0,CATEGORY_DISABLE,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,0,0)
......
......@@ -166,6 +166,6 @@ function s.op5(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local sg=g:Select(tp,1,3,nil)
sg:SendtoGrave(REASON_EFFECT)
Duel.SendtoGrave(sg,REASON_EFFECT)
end
end
\ No newline at end of file
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