Commit 0cbb9e2a authored by songtongtong's avatar songtongtong

update lua

parent e8b5a991
......@@ -15,13 +15,19 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
--synchro level
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetRange(LOCATION_FZONE)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_SYNCHRO_LEVEL)
e2:SetTarget(cm.imtg)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE)
e2:SetRange(LOCATION_MZONE)
e2:SetValue(cm.slevel)
c:RegisterEffect(e2)
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_GRANT)
e5:SetRange(LOCATION_SZONE)
e5:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE)
e5:SetTargetRange(LOCATION_MZONE,0)
e5:SetTarget(cm.imtg)
e5:SetLabelObject(e2)
c:RegisterEffect(e5)
--spsummon
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(m,0))
......@@ -66,7 +72,8 @@ function cm.imtg(e,c)
return c:IsCode(m-10)
end
function cm.slevel(e,c,rc)
return c:GetLevel()+2*65536
local lv=aux.GetCappedLevel(e:GetHandler())
return (2<<16)+lv
end
function cm.cfilter(c,ft,tp)
......
......@@ -68,6 +68,9 @@ function c66914013.disrmop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c66914013.ofilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,1,e:GetHandler(),e)
local tc=g:GetFirst()
if tc then
if tc:IsStatus(STATUS_LEAVE_CONFIRMED) then
tc:CancelToGrave()
end
Duel.Overlay(c,tc)
end
Duel.ShuffleDeck(tp)
......
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