Commit 7b8164ef authored by zengsxing's avatar zengsxing

fix

parent ffc21e26
No preview for this file type
...@@ -16,14 +16,14 @@ function s.initial_effect(c) ...@@ -16,14 +16,14 @@ function s.initial_effect(c)
e1:SetLabelObject(e0) e1:SetLabelObject(e0)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--destroy --destroy
local e1=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0)) e2:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_DESTROY) e2:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_BATTLE_START) e2:SetCode(EVENT_BATTLE_START)
e1:SetTarget(s.destg) e2:SetTarget(s.destg)
e1:SetOperation(s.desop) e2:SetOperation(s.desop)
c:RegisterEffect(e1) c:RegisterEffect(e2)
--Search --Search
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,1)) e3:SetDescription(aux.Stringid(id,1))
...@@ -37,7 +37,7 @@ function s.initial_effect(c) ...@@ -37,7 +37,7 @@ function s.initial_effect(c)
e3:SetOperation(s.thop) e3:SetOperation(s.thop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function s.ttcon(e,c,minc) function s.ttcon(e,c,minc)
if c==nil then return true end if c==nil then return true end
local min,max=c:GetTributeRequirement() local min,max=c:GetTributeRequirement()
return min<=1 and Duel.CheckTribute(c,1) return min<=1 and Duel.CheckTribute(c,1)
......
...@@ -45,8 +45,6 @@ function s.SelectSub(g1,g2,tp) ...@@ -45,8 +45,6 @@ function s.SelectSub(g1,g2,tp)
local finish=false local finish=false
while true do while true do
finish=#sg1==#sg2 and #sg>0 finish=#sg1==#sg2 and #sg>0
Debug.Message(#sg1)
Debug.Message(#sg2)
local sc=fg:SelectUnselect(sg,tp,finish,finish,2,max*2) local sc=fg:SelectUnselect(sg,tp,finish,finish,2,max*2)
if not sc then break end if not sc then break end
if sg:IsContains(sc) then if sg:IsContains(sc) then
......
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