Commit d7d616dd authored by Tachibana's avatar Tachibana

clean useless

parent 428123aa
No preview for this file type
...@@ -48,12 +48,12 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,12 +48,12 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_ACTIVATE) e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetTargetRange(0,1) e1:SetTargetRange(1,1)
e1:SetValue(cm.aclimit1) e1:SetValue(cm.aclimit1)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
end end
function cm.aclimit1(e,re,tp) function cm.aclimit1(e,re,tp)
return Duel.GetActivityCount(1-tp,m)<2 and ( re:IsActiveType(TYPE_SPELL) or re:IsActiveType(TYPE_TRAP) ) return Duel.GetActivityCount(e:GetHandlerPlayer(),m)<3 and ( re:IsActiveType(TYPE_SPELL) or re:IsActiveType(TYPE_TRAP) )
end end
\ No newline at end of file
...@@ -9,7 +9,6 @@ function c45700004.initial_effect(c) ...@@ -9,7 +9,6 @@ function c45700004.initial_effect(c)
e1:SetOperation(c45700004.activate) e1:SetOperation(c45700004.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
end
function c45700004.condition(e,tp,eg,ep,ev,re,r,rp) function c45700004.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 and not Duel.CheckPhaseActivity() return Duel.GetCurrentPhase()==PHASE_MAIN1 and not Duel.CheckPhaseActivity()
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