Commit 39a5bb81 authored by nanahira's avatar nanahira

seiryu

parent 08c9f049
...@@ -26,7 +26,6 @@ function c33700082.initial_effect(c) ...@@ -26,7 +26,6 @@ function c33700082.initial_effect(c)
e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e2:SetCondition(c33700082.indcon)
e2:SetTarget(c33700082.indtg) e2:SetTarget(c33700082.indtg)
e2:SetValue(1) e2:SetValue(1)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -35,17 +34,15 @@ function c33700082.initial_effect(c) ...@@ -35,17 +34,15 @@ function c33700082.initial_effect(c)
e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e3:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e2:SetCondition(c33700082.indcon)
e3:SetTarget(c33700082.indtg) e3:SetTarget(c33700082.indtg)
e3:SetValue(1) e3:SetValue(1)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c33700082.indcon(e)
local g=Duel.GetMatchingGroup(Card.IsFaceup,e:GetHandlerPlayer(),0,LOCATION_ONFIELD,nil)
return g:GetClassCount(Card.GetCode)<g:GetCount()
end
function c33700082.indtg(e,c) function c33700082.indtg(e,c)
return e:GetHandler():GetLinkedGroup():IsContains(c) local g=Duel.GetMatchingGroup(Card.IsFaceup,e:GetHandlerPlayer(),0,LOCATION_ONFIELD,nil)
local ct1=g:GetClassCount(Card.GetCode)
local ct2=g:GetCount()
return ct1<ct2 and e:GetHandler():GetLinkedGroup():IsContains(c)
end end
function c33700082.target(e,tp,eg,ep,ev,re,r,rp,chk) function c33700082.target(e,tp,eg,ep,ev,re,r,rp,chk)
local hg=Duel.GetFieldGroupCount(tp,LOCATION_HAND,0) local hg=Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)
......
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