Commit 62b9dff9 authored by 聖園ミカ's avatar 聖園ミカ 🐟

md

parent 858c46dd
--时境断裂
Duel.LoadScript("c10199990.lua")
local m=33340013
local cm=_G["c"..m]
function cm.initial_effect(c)
local e1=rsef.ACT(c)
e1:RegisterSolve(cm.con,nil,nil,cm.op)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(cm.con)
e1:SetOperation(cm.op)
c:RegisterEffect(e1)
--act in hand
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
......@@ -20,9 +24,35 @@ function cm.con(e,tp)
end
function cm.op(e,tp)
local c=e:GetHandler()
local e1=rsef.FC({c,tp},EVENT_SPSUMMON_SUCCESS,nil,nil,nil,nil,nil,cm.spop,rsreset.pend)
local e2=rsef.FV_LIMIT_PLAYER({c,tp},"sp",nil,cm.tg,{0,1},nil,rsreset.pend)
e2:SetLabelObject(e1)
local e7=Effect.CreateEffect(c)
e7:SetLabel(0)
local e8=Effect.CreateEffect(c)
e8:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e8:SetCode(EVENT_SPSUMMON_SUCCESS)
e8:SetLabelObject(e7)
e8:SetOperation(cm.spop)
Duel.RegisterEffect(e8,tp)
local e9=e8:Clone()
e9:SetCode(EVENT_SUMMON_SUCCESS)
e9:SetLabelObject(e7)
Duel.RegisterEffect(e9,tp)
Debug.Message(e9:GetLabelObject())
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(0,1)
e1:SetTarget(cm.tg)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetLabelObject(e8)
Duel.RegisterEffect(e1,tp)
local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e2:SetLabelObject(e9)
Duel.RegisterEffect(e2,tp)
end
function cm.splimit(e,c)
return not c:IsRace(RACE_PLANT)
end
function cm.spop(e,tp,eg)
local loc=0
......@@ -33,8 +63,9 @@ function cm.spop(e,tp,eg)
loc=loc|loc2
end
end
e:SetLabel(loc)
local te=e:GetLabelObject()
te:SetLabel(loc)
end
function cm.tg(e,c)
return c:IsLocation(e:GetLabelObject():GetLabel())
return c:IsLocation(e:GetLabelObject():GetLabelObject():GetLabel())
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