Commit 3e24ac91 authored by Tachibana's avatar Tachibana

ndyd

parent 78fa28dd
...@@ -35,6 +35,7 @@ function cm.initial_effect(c) ...@@ -35,6 +35,7 @@ function cm.initial_effect(c)
e4:SetCode(EFFECT_CANNOT_ACTIVATE) e4:SetCode(EFFECT_CANNOT_ACTIVATE)
e4:SetTargetRange(0,1) e4:SetTargetRange(0,1)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetCondition(cm.actcon)
e4:SetValue(1) e4:SetValue(1)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--material check --material check
...@@ -96,6 +97,11 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -96,6 +97,11 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.actcon(e)
local ph=Duel.GetCurrentPhase()
return ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE
end
function cm.matcon(e,tp,eg,ep,ev,re,r,rp) function cm.matcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) and e:GetLabel()==1 return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) and e:GetLabel()==1
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