Commit 8e8c073c authored by gg123gg's avatar gg123gg Committed by GitHub

Add files via upload

parent 469ac6a5
...@@ -39,11 +39,12 @@ function cm.initial_effect(c) ...@@ -39,11 +39,12 @@ function cm.initial_effect(c)
--draw --draw
local e0=Effect.CreateEffect(c) local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e0:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e0:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e0:SetCode(EVENT_DESTROY) e0:SetCode(EVENT_DESTROY)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e0:SetRange(LOCATION_MZONE) e0:SetRange(LOCATION_MZONE)
e0:SetCondition(cm.condition) e0:SetCondition(cm.condition)
e0:SetOperation(aux.chainreg) e0:SetOperation(cm.droperation)
c:RegisterEffect(e0) c:RegisterEffect(e0)
--negate --negate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -62,6 +63,9 @@ end ...@@ -62,6 +63,9 @@ end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return re:GetHandler():IsSetCard(0xfa1) return re:GetHandler():IsSetCard(0xfa1)
end end
function cm.droperation(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(tp,1,REASON_EFFECT)
end
function cm.spfilter(c) function cm.spfilter(c)
return c:IsAbleToRemoveAsCost() and c:IsLevelAbove(0) return c:IsAbleToRemoveAsCost() and c:IsLevelAbove(0)
end end
......
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