Commit dd883674 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c79250042.lua

parent cb7da679
...@@ -19,7 +19,7 @@ function s.initial_effect(c) ...@@ -19,7 +19,7 @@ function s.initial_effect(c)
e2:SetTargetRange(LOCATION_ONFIELD,LOCATION_ONFIELD) e2:SetTargetRange(LOCATION_ONFIELD,LOCATION_ONFIELD)
e2:SetValue(1) e2:SetValue(1)
e2:SetTarget(aux.TargetBoolFunction(Card.IsType,TYPE_TOKEN)) e2:SetTarget(aux.TargetBoolFunction(Card.IsType,TYPE_TOKEN))
e2:SetCondition(aux.tkfcon) e2:SetCondition(s.effcon)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--battle indes --battle indes
local e3=e2:Clone() local e3=e2:Clone()
...@@ -44,7 +44,7 @@ function s.initial_effect(c) ...@@ -44,7 +44,7 @@ function s.initial_effect(c)
e6:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e6:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e6:SetRange(LOCATION_MZONE) e6:SetRange(LOCATION_MZONE)
e6:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e6:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e6:SetCondition(aux.tkfcon) e6:SetCondition(s.effcon)
e6:SetValue(1) e6:SetValue(1)
c:RegisterEffect(e6) c:RegisterEffect(e6)
local e7=e6:Clone() local e7=e6:Clone()
...@@ -115,6 +115,9 @@ end ...@@ -115,6 +115,9 @@ end
function s.filter(c,e,tp) function s.filter(c,e,tp)
return c:IsType(TYPE_TOKEN) return c:IsType(TYPE_TOKEN)
end end
function s.effcon(e,tp,eg,ep,ev,re,r,rp,chk)
return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
end
function s.effcon1(e,tp,eg,ep,ev,re,r,rp,chk) function s.effcon1(e,tp,eg,ep,ev,re,r,rp,chk)
return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_ONFIELD,0,1,nil) return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_ONFIELD,0,1,nil)
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