Commit 7e25a7c4 authored by Tachibana's avatar Tachibana

得得得得得

parent 4253ddfe
Pipeline #13455 passed with stages
in 28 minutes and 57 seconds
...@@ -15,6 +15,10 @@ function cm.initial_effect(c) ...@@ -15,6 +15,10 @@ function cm.initial_effect(c)
local e2=e1:Clone() local e2=e1:Clone()
e2:SetCode(EVENT_SUMMON_SUCCESS) e2:SetCode(EVENT_SUMMON_SUCCESS)
c:RegisterEffect(e2) c:RegisterEffect(e2)
if not cm.check_for_overlay then
cm.check_for_overlay=true
end
end end
function cm.spfilter(c,e,tp) function cm.spfilter(c,e,tp)
return c:IsRace(RACE_WINDBEAST) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_WINDBEAST) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
...@@ -114,6 +118,28 @@ function cm.xop(e,tp,eg,ep,ev,re,r,rp) ...@@ -114,6 +118,28 @@ function cm.xop(e,tp,eg,ep,ev,re,r,rp)
if g then if g then
Duel.HintSelection(g) Duel.HintSelection(g)
Duel.Overlay(tc,g) Duel.Overlay(tc,g)
local func_overlay=Duel.Overlay
function Duel.Overlay(card,ocard)
if aux.GetValueType(ocard)=="Card" then
if ocard:GetOverlayCount()>0 then
local mg=ocard:GetOverlayGroup()
if mg:GetCount()~=0 then
Duel.Overlay(card,mg)
end
end
else
for tc in aux.Next(ocard) do
if tc:GetOverlayCount()>0 then
local mg=tc:GetOverlayGroup()
if mg:GetCount()~=0 then
Duel.Overlay(card,mg)
end
end
end
end
Duel.Overlay=func_overlay
return func_overlay(card,ocard)
end
end end
end end
end end
\ No newline at end of file
...@@ -5,6 +5,7 @@ function cm.initial_effect(c) ...@@ -5,6 +5,7 @@ function cm.initial_effect(c)
--fusion material --fusion material
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddFusionProcFunRep(c,cm.ffilter,2,true) aux.AddFusionProcFunRep(c,cm.ffilter,2,true)
--aux.AddFusionProcFun2(c,cm.ffilter1,cm.ffilter2,true)
--atkup --atkup
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
...@@ -15,6 +16,7 @@ function cm.initial_effect(c) ...@@ -15,6 +16,7 @@ function cm.initial_effect(c)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_CONTROL) e3:SetCategory(CATEGORY_CONTROL)
e3:SetType(EFFECT_TYPE_IGNITION) e3:SetType(EFFECT_TYPE_IGNITION)
--e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,m+EFFECT_COUNT_CODE_DUEL) e3:SetCountLimit(1,m+EFFECT_COUNT_CODE_DUEL)
e3:SetCondition(cm.condition) e3:SetCondition(cm.condition)
...@@ -29,8 +31,8 @@ function cm.initial_effect(c) ...@@ -29,8 +31,8 @@ function cm.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function cm.ffilter(c,fc,sub,mg,sg) function cm.ffilter(c,fc,sub,mg,sg)
return c:IsFusionSetCard(0xa01) and c:IsLevelAbove(1) and (not sg or sg:FilterCount(aux.TRUE,c)==0 return not sg or sg:FilterCount(aux.TRUE,c)==0
or sg:IsExists(Card.IsLevelAbove,1,c,10-c:GetLevel())) or (c:IsSetCard(0xa01) and c:IsType(TYPE_MONSTER) and c:IsLevelAbove(1) and sg:IsExists(Card.IsLevelAbove,1,c,10-c:GetLevel()))
end end
function cm.ffilter2(c) function cm.ffilter2(c)
return c:IsFusionSetCard(0xa01) return c:IsFusionSetCard(0xa01)
...@@ -52,7 +54,7 @@ end ...@@ -52,7 +54,7 @@ end
--ntr --ntr
function cm.valcheck(e,c) function cm.valcheck(e,c)
local g=c:GetMaterial() local g=c:GetMaterial()
if g:IsExists(Card.IsLevelAbove,1,nil,8) then if g:IsExists(Card.IsLevelAbove,1,nil,10) then
e:GetLabelObject():SetLabel(1) e:GetLabelObject():SetLabel(1)
else else
e:GetLabelObject():SetLabel(0) e:GetLabelObject():SetLabel(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