Commit 186c025b authored by Nemo Ma's avatar Nemo Ma

fix

parent a6d2403e
......@@ -113,6 +113,8 @@ function cm.nnfilter(c,ec)
return false
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
if apricot_nightfall_adjust then return end
apricot_nightfall_adjust=true
e:Reset()
local c=e:GetHandler()
local tp=c:GetControler()
......@@ -186,8 +188,8 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
end
end
end
if not apricot_nightfall then
apricot_nightfall=true
if not apricot_nightfall_preload then
apricot_nightfall_preload=true
pcall(dofile,"expansions/script/special.lua")
if Auxiliary.PreloadUds and not PreloadUds_Done then Auxiliary.PreloadUds() end
--Debug.Message("Protocol Request Complete. 杏花宵®漏洞解决方案已上线。")
......
......@@ -29,7 +29,7 @@ function cm.initial_effect(c)
e27:SetProperty(EFFECT_CANNOT_DISABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_UNCOPYABLE)
e27:SetCode(EVENT_ADJUST)
e27:SetOperation(cm.gravecheckop)
Duel.RegisterEffect(e27,tp)
Duel.RegisterEffect(e27,0)
end
function cm.gravecheckop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -57,7 +57,7 @@ function cm.initial_effect(c)
e27:SetProperty(EFFECT_CANNOT_DISABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_UNCOPYABLE)
e27:SetCode(EVENT_ADJUST)
e27:SetOperation(cm.gravecheckop)
Duel.RegisterEffect(e27,tp)
Duel.RegisterEffect(e27,0)
if not cm.global_check then
cm.global_check=true
local ge1=Effect.CreateEffect(c)
......
......@@ -18,7 +18,7 @@ function cm.initial_effect(c)
e27:SetProperty(EFFECT_CANNOT_DISABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_UNCOPYABLE)
e27:SetCode(EVENT_ADJUST)
e27:SetOperation(cm.gravecheckop)
Duel.RegisterEffect(e27,tp)
Duel.RegisterEffect(e27,0)
--tg
local e11=Effect.CreateEffect(c)
e11:SetCategory(CATEGORY_TOGRAVE)
......
......@@ -30,7 +30,7 @@ function cm.initial_effect(c)
e27:SetProperty(EFFECT_CANNOT_DISABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_UNCOPYABLE)
e27:SetCode(EVENT_ADJUST)
e27:SetOperation(cm.gravecheckop)
Duel.RegisterEffect(e27,tp)
Duel.RegisterEffect(e27,0)
end
function cm.gravecheckop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -28,7 +28,7 @@ function cm.initial_effect(c)
e27:SetProperty(EFFECT_CANNOT_DISABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_UNCOPYABLE)
e27:SetCode(EVENT_ADJUST)
e27:SetOperation(cm.gravecheckop)
Duel.RegisterEffect(e27,tp)
Duel.RegisterEffect(e27,0)
end
function cm.gravecheckop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -31,7 +31,7 @@ function cm.initial_effect(c)
e27:SetProperty(EFFECT_CANNOT_DISABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_UNCOPYABLE)
e27:SetCode(EVENT_ADJUST)
e27:SetOperation(cm.gravecheckop)
Duel.RegisterEffect(e27,tp)
Duel.RegisterEffect(e27,0)
end
function cm.gravecheckop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -32,7 +32,7 @@ function cm.initial_effect(c)
e27:SetProperty(EFFECT_CANNOT_DISABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_UNCOPYABLE)
e27:SetCode(EVENT_ADJUST)
e27:SetOperation(cm.gravecheckop)
Duel.RegisterEffect(e27,tp)
Duel.RegisterEffect(e27,0)
end
function cm.gravecheckop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -27,7 +27,7 @@ function cm.initial_effect(c)
e27:SetProperty(EFFECT_CANNOT_DISABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_UNCOPYABLE)
e27:SetCode(EVENT_ADJUST)
e27:SetOperation(cm.gravecheckop)
Duel.RegisterEffect(e27,tp)
Duel.RegisterEffect(e27,0)
end
function cm.gravecheckop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -29,7 +29,7 @@ function cm.initial_effect(c)
e27:SetProperty(EFFECT_CANNOT_DISABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_UNCOPYABLE)
e27:SetCode(EVENT_ADJUST)
e27:SetOperation(cm.gravecheckop)
Duel.RegisterEffect(e27,tp)
Duel.RegisterEffect(e27,0)
end
function cm.gravecheckop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -40,7 +40,7 @@ function cm.initial_effect(c)
e27:SetProperty(EFFECT_CANNOT_DISABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_UNCOPYABLE)
e27:SetCode(EVENT_ADJUST)
e27:SetOperation(cm.gravecheckop)
Duel.RegisterEffect(e27,tp)
Duel.RegisterEffect(e27,0)
end
function cm.gravecheckop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -40,7 +40,7 @@ function cm.initial_effect(c)
e27:SetProperty(EFFECT_CANNOT_DISABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_UNCOPYABLE)
e27:SetCode(EVENT_ADJUST)
e27:SetOperation(cm.gravecheckop)
Duel.RegisterEffect(e27,tp)
Duel.RegisterEffect(e27,0)
end
function cm.gravecheckop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -26,7 +26,7 @@ function cm.initial_effect(c)
e27:SetProperty(EFFECT_CANNOT_DISABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_UNCOPYABLE)
e27:SetCode(EVENT_ADJUST)
e27:SetOperation(cm.gravecheckop)
Duel.RegisterEffect(e27,tp)
Duel.RegisterEffect(e27,0)
end
function cm.gravecheckop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -29,7 +29,7 @@ function cm.initial_effect(c)
e27:SetProperty(EFFECT_CANNOT_DISABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_UNCOPYABLE)
e27:SetCode(EVENT_ADJUST)
e27:SetOperation(cm.gravecheckop)
Duel.RegisterEffect(e27,tp)
Duel.RegisterEffect(e27,0)
end
function cm.gravecheckop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -18,7 +18,7 @@ function cm.initial_effect(c)
e27:SetProperty(EFFECT_CANNOT_DISABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_UNCOPYABLE)
e27:SetCode(EVENT_ADJUST)
e27:SetOperation(cm.gravecheckop)
Duel.RegisterEffect(e27,tp)
Duel.RegisterEffect(e27,0)
end
function cm.gravecheckop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -26,7 +26,7 @@ function cm.initial_effect(c)
e27:SetProperty(EFFECT_CANNOT_DISABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_UNCOPYABLE)
e27:SetCode(EVENT_ADJUST)
e27:SetOperation(cm.gravecheckop)
Duel.RegisterEffect(e27,tp)
Duel.RegisterEffect(e27,0)
end
function cm.gravecheckop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -77,6 +77,7 @@ function Auxiliary.CheckAlreadyRegisteredEffects()
local code=tc:GetOriginalCode()
tc:ReplaceEffect(CARD_CYBER_HARPIE_LADY,0,0)
tc:SetStatus(STATUS_EFFECT_REPLACED,false)
Debug.Message(code)
Duel.SetMetatable(tc, _G["c"..code])
local s=getmetatable(tc)
s.initial_effect(tc)
......@@ -260,6 +261,7 @@ if not global_duel_effect_table_global_check then
global_duel_effect_table={}
Duel.register_global_duel_effect_table = Duel.RegisterEffect
Duel.RegisterEffect = function(e,tp)
if tp~=0 and tp~=1 then return end
if not global_duel_effect_table[tp] then global_duel_effect_table[tp]={} end
table.insert(global_duel_effect_table[tp],e)
......
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