Commit 958b69b4 authored by wind2009's avatar wind2009

Fix

parent ad773658
Pipeline #35501 passed with stages
in 1 minute and 16 seconds
...@@ -18,13 +18,13 @@ function s.initial_effect(c) ...@@ -18,13 +18,13 @@ function s.initial_effect(c)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCode(custom_code) e2:SetCode(custom_code)
e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e2:SetCountLimit(1,id+o*2) e2:SetCountLimit(1,id+o)
e2:SetTarget(s.thtg) e2:SetTarget(s.thtg)
e2:SetOperation(s.thop) e2:SetOperation(s.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function s.setfilter(c) function s.setfilter(c)
return c:IsType(TYPE_TRAP) and c:IsType(TYPE_CONTINUOUS) and c:IsSSetable() return c:IsAllTypes(TYPE_CONTINUOUS+TYPE_TRAP) and c:IsSSetable()
and (c:GetOriginalLevel()>0 and (c:GetOriginalLevel()>0
or bit.band(c:GetOriginalRace(),0x3fffffff)~=0 or bit.band(c:GetOriginalRace(),0x3fffffff)~=0
or bit.band(c:GetOriginalAttribute(),0x7f)~=0 or bit.band(c:GetOriginalAttribute(),0x7f)~=0
......
...@@ -14,7 +14,7 @@ end ...@@ -14,7 +14,7 @@ end
function s.condition(e,tp,eg,ep,ev,re,r,rp) function s.condition(e,tp,eg,ep,ev,re,r,rp)
local ex4=re:IsHasCategory(CATEGORY_DRAW) local ex4=re:IsHasCategory(CATEGORY_DRAW)
local ex5=re:IsHasCategory(CATEGORY_SEARCH) local ex5=re:IsHasCategory(CATEGORY_SEARCH)
return ep==1-tp and (ex4 or ex5) return ex4 or ex5
end end
function s.thfilter(c) function s.thfilter(c)
return c:IsAbleToHand() return c:IsAbleToHand()
......
...@@ -58,7 +58,6 @@ function s.settg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -58,7 +58,6 @@ function s.settg(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(op) e:SetLabel(op)
if op==1 then if op==1 then
e:SetCategory(0) e:SetCategory(0)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
elseif op==2 then elseif op==2 then
e:SetCategory(CATEGORY_SPECIAL_SUMMON) e:SetCategory(CATEGORY_SPECIAL_SUMMON)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_SZONE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_SZONE)
......
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