Commit 7eacc811 authored by 聖園ミカ's avatar 聖園ミカ 🐟

str

parent 1e9566eb
No preview for this file type
...@@ -23,7 +23,7 @@ function cm.initial_effect(c) ...@@ -23,7 +23,7 @@ function cm.initial_effect(c)
end end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp) function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=re:GetHandler() local tc=re:GetHandler()
if tc:IsType(TYPE_MONSTER) then if tc~=e:GetHandler() then
Sre_setbackt[1]=tc Sre_setbackt[1]=tc
end end
end end
...@@ -32,30 +32,29 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,30 +32,29 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if Sre_setbackt[1]~=0 then if Sre_setbackt[1]~=0 then
res=Sre_setbackt[1] res=Sre_setbackt[1]
end end
if chk==0 then return res and res:IsControler(1-tp) and res:IsLocation(LOCATION_ONFIELD) and res:IsControlerCanBeChanged() end if chk==0 then return res and res:IsControler(1-tp) and res:IsLocation(LOCATION_ONFIELD) end
Duel.SetOperationInfo(0,CATEGORY_CONTROL,Sre_setbackt[1],1,0,0) Duel.SetOperationInfo(0,CATEGORY_CONTROL,Sre_setbackt[1],1,0,0)
end end
function cm.thop(e,tp,eg,ep,ev,re,r,rp) function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Sre_setbackt[1] local tc=Sre_setbackt[1]
if tc:IsRelateToEffect(e) then if not c:IsLocation(LOCATION_ONFIELD) then return end
if tc:IsLocation(LOCATION_MZONE) then if tc:IsLocation(LOCATION_MZONE) then
Duel.GetControl(tc,tp) Duel.GetControl(tc,tp)
elseif tc:IsLocation(LOCATION_FZONE) then elseif tc:IsLocation(LOCATION_FZONE) then
local fc=Duel.GetFieldCard(tp,LOCATION_FZONE,0) local fc=Duel.GetFieldCard(tp,LOCATION_FZONE,0)
if fc then if fc then
Duel.SendtoGrave(fc,REASON_RULE) Duel.SendtoGrave(fc,REASON_RULE)
Duel.BreakEffect() Duel.BreakEffect()
end end
local pos=tc:GetPosition()
Duel.MoveToField(tc,tp,tp,LOCATION_FZONE,pos,true)
else
if Duel.GetLocationCount(tp,LOCATION_SZONE)>0 then
local pos=tc:GetPosition() local pos=tc:GetPosition()
Duel.MoveToField(tc,tp,tp,LOCATION_FZONE,pos,true) Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,pos,true)
else else
if Duel.GetLocationCount(tp,LOCATION_SZONE)>0 then Duel.SendtoGrave(tc,REASON_RULE)
local pos=tc:GetPosition()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,pos,true)
else
Duel.SendtoGrave(tc,REASON_RULE)
end
end end
end end
if c:IsRelateToEffect(e) and c:IsCanTurnSet() and e:IsHasType(EFFECT_TYPE_ACTIVATE) then if c:IsRelateToEffect(e) and c:IsCanTurnSet() and e:IsHasType(EFFECT_TYPE_ACTIVATE) 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