Commit d2e1af8d authored by songtongtong's avatar songtongtong

replace effect

parent e6026ce3
No preview for this file type
...@@ -42,11 +42,10 @@ function cm.initial_effect(c) ...@@ -42,11 +42,10 @@ function cm.initial_effect(c)
local e7=Effect.CreateEffect(c) local e7=Effect.CreateEffect(c)
e7:SetDescription(aux.Stringid(m,3)) e7:SetDescription(aux.Stringid(m,3))
e7:SetCategory(CATEGORY_CONTROL) e7:SetCategory(CATEGORY_CONTROL)
e7:SetType(EFFECT_TYPE_QUICK_O) e7:SetType(EFFECT_TYPE_IGNITION)
e7:SetRange(LOCATION_MZONE) e7:SetRange(LOCATION_MZONE)
e7:SetCode(EVENT_FREE_CHAIN) e7:SetCode(EVENT_FREE_CHAIN)
e7:SetProperty(EFFECT_FLAG_CARD_TARGET) e7:SetProperty(EFFECT_FLAG_CARD_TARGET)
e7:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e7:SetCountLimit(1) e7:SetCountLimit(1)
e7:SetTarget(cm.target) e7:SetTarget(cm.target)
e7:SetOperation(cm.operation) e7:SetOperation(cm.operation)
......
...@@ -9,8 +9,10 @@ function cm.initial_effect(c) ...@@ -9,8 +9,10 @@ function cm.initial_effect(c)
local e2=rsef.I(c,{m,0},{1,m},"tg,sp,atk",nil,LOCATION_GRAVE,cm.spcon,nil,nil,cm.spop) local e2=rsef.I(c,{m,0},{1,m},"tg,sp,atk",nil,LOCATION_GRAVE,cm.spcon,nil,nil,cm.spop)
local e3=rsef.RegisterOPTurn(c,e2,cm.spcon2) local e3=rsef.RegisterOPTurn(c,e2,cm.spcon2)
end end
function cm.ssop(e,tp) function cm.ssop(e,tp,eg,ep,ev,re,r,rp)
local e1=rsef.FC({e:GetHandler(),tp},EVENT_CHAINING,nil,nil,nil,nil,nil,cm.rmop,rsreset.pend) if re:GetHandler():IsCode(33330100) then
local e1=rsef.FC({e:GetHandler(),tp},EVENT_CHAINING,nil,nil,nil,nil,nil,cm.rmop,rsreset.pend)
end
end end
function cm.rmop(e,tp,eg,ep,ev,re,r,rp) function cm.rmop(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler() local rc=re:GetHandler()
......
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