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

str

parent 1e9566eb
No preview for this file type
......@@ -23,7 +23,7 @@ function cm.initial_effect(c)
end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=re:GetHandler()
if tc:IsType(TYPE_MONSTER) then
if tc~=e:GetHandler() then
Sre_setbackt[1]=tc
end
end
......@@ -32,13 +32,13 @@ 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_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)
end
function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
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
Duel.GetControl(tc,tp)
elseif tc:IsLocation(LOCATION_FZONE) then
......@@ -57,7 +57,6 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(tc,REASON_RULE)
end
end
end
if c:IsRelateToEffect(e) and c:IsCanTurnSet() and e:IsHasType(EFFECT_TYPE_ACTIVATE) then
Duel.BreakEffect()
c:CancelToGrave()
......
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