Commit 9317f65e authored by 聖園ミカ's avatar 聖園ミカ 🐟

str

parent 41137037
Pipeline #26943 passed with stages
in 30 minutes and 24 seconds
......@@ -46,7 +46,7 @@ function cm.hspfilter2(c,tp,sc,tc)
local g=Group.CreateGroup()
g:AddCard(tc)
g:AddCard(c)
return c:IsSetCard(0xa341)
return c:IsSetCard(0xa341) and Duel.GetFlagEffect(tp,c:GetCode()+10000)==0
and c:IsControler(tp) and Duel.GetLocationCountFromEx(tp,tp,g,sc)>0 and c:IsCanBeFusionMaterial(sc,SUMMON_TYPE_SPECIAL)
end
function cm.hspcon(e,c)
......
......@@ -45,7 +45,7 @@ function cm.hspfilter2(c,tp,sc,tc)
local g=Group.CreateGroup()
g:AddCard(tc)
g:AddCard(c)
return c:IsSetCard(0xa341)
return c:IsSetCard(0xa341) and Duel.GetFlagEffect(tp,c:GetCode()+10000)==0
and c:IsControler(tp) and Duel.GetLocationCountFromEx(tp,tp,g,sc)>0 and c:IsCanBeFusionMaterial(sc,SUMMON_TYPE_SPECIAL)
end
function cm.hspcon(e,c)
......
......@@ -46,7 +46,7 @@ function cm.hspfilter2(c,tp,sc,tc)
local g=Group.CreateGroup()
g:AddCard(tc)
g:AddCard(c)
return c:IsSetCard(0xa341)
return c:IsSetCard(0xa341) and Duel.GetFlagEffect(tp,c:GetCode()+10000)==0
and c:IsControler(tp) and Duel.GetLocationCountFromEx(tp,tp,g,sc)>0 and c:IsCanBeFusionMaterial(sc,SUMMON_TYPE_SPECIAL)
end
function cm.hspcon(e,c)
......
......@@ -46,7 +46,7 @@ function cm.hspfilter2(c,tp,sc,tc)
local g=Group.CreateGroup()
g:AddCard(tc)
g:AddCard(c)
return c:IsSetCard(0xa341)
return c:IsSetCard(0xa341) and Duel.GetFlagEffect(tp,c:GetCode()+10000)==0
and c:IsControler(tp) and Duel.GetLocationCountFromEx(tp,tp,g,sc)>0 and c:IsCanBeFusionMaterial(sc,SUMMON_TYPE_SPECIAL)
end
function cm.hspcon(e,c)
......
......@@ -32,14 +32,12 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if Sre_setbackt[1]~=0 then
res=Sre_setbackt[1]
end
if chk==0 then return res and res:IsControler(1-tp) and res:IsLocation(LOCATION_MZONE) and res:IsControlerCanBeChanged() end
Duel.SetTargetCard(res)
Duel.HintSelection(Group.FromCards(res))
Duel.SetOperationInfo(0,CATEGORY_CONTROL,e:GetLabelObject(),1,0,0)
if chk==0 then return res and res:IsControler(1-tp) and res:IsLocation(LOCATION_ONFIELD) and res:IsControlerCanBeChanged() end
Duel.SetOperationInfo(0,CATEGORY_CONTROL,Sre_setbackt[1],1,0,0)
end
function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
local tc=Sre_setbackt[1]
if tc:IsRelateToEffect(e) then
if tc:IsLocation(LOCATION_MZONE) then
Duel.GetControl(tc,tp)
......@@ -66,6 +64,4 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangePosition(c,POS_FACEDOWN)
Duel.RaiseEvent(c,EVENT_SSET,e,REASON_EFFECT,tp,tp,0)
end
local res=Sre_setbackt[1]
res:ReleaseEffectRelation(e)
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