Commit 6440d8e8 authored by 未闻皂名's avatar 未闻皂名

2021/9/9 新增:月轮龙,修复bug

parent aa883755
No preview for this file type
local m=120196023
local list={120110004,120110008,120196050}
local cm=_G["c"..m]
cm.name="月轮龙 暗影蓝瑟龙F"
function cm.initial_effect(c)
aux.AddCodeList(c,list[1],list[2])
--Fusion Material
aux.AddFusionProcCode2(c,list[1],list[2],true,true)
--Select Effect
local e1=RushDuel.BaseSelectEffect(c,aux.Stringid(m,1),cm.eff1con,cm.eff1op,aux.Stringid(m,2),cm.eff2con,cm.eff2op)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_GRAVE_SPSUMMON+CATEGORY_TOHAND+CATEGORY_GRAVE_ACTION)
e1:SetCost(cm.cost)
c:RegisterEffect(e1)
end
--Select Effect
function cm.costfilter(c)
return not RushDuel.IsLegendCode(c,list[3]) and c:IsAbleToGrave()
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.costfilter,tp,LOCATION_HAND,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,cm.costfilter,tp,LOCATION_HAND,0,1,1,nil)
Duel.SendtoGrave(g,REASON_COST)
end
--Special Summon
function cm.spfilter(c,e,tp)
return c:IsRace(RACE_HYDRAGON) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cm.eff1con(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetMZoneCount(tp)>0
and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp)
end
function cm.eff1op(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetMZoneCount(tp)<1 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(cm.spfilter),tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
--To Hand
function cm.thfilter(c)
return RushDuel.IsLegendCode(c,list[3]) and c:IsAbleToHand()
end
function cm.eff2con(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_GRAVE,0,1,nil)
end
function cm.eff2op(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(cm.thfilter),tp,LOCATION_GRAVE,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
\ No newline at end of file
local m=120196038
local list={120183024,120196039,120183062,120183063}
local cm=_G["c"..m]
cm.name="漆黑社员王 雄伟恶德话术大王"
cm.name="漆黑社员王 恶德话术大王"
function cm.initial_effect(c)
aux.AddCodeList(c,list[1],list[2],list[3],list[4])
--Fusion Material
......@@ -21,7 +21,7 @@ end
function cm.filter(c)
return c:IsRace(RACE_MACHINE)
end
function cm.thfilter(c)
function cm.tdfilter(c)
return c:IsCode(list[3],list[4]) and c:IsAbleToDeck()
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
......
local m=120196039
local list={120183024}
local cm=_G["c"..m]
cm.name="刷新战士社员·组织者"
cm.name="刷新战士 社员·组织王"
function cm.initial_effect(c)
aux.AddCodeList(c,list[1])
--Special Summon
......
......@@ -20,7 +20,7 @@ function cm.costfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToGraveAsCost()
end
function cm.exfilter(c)
return c:IsCode(list[1])
return RushDuel.IsLegendCode(c,list[1])
end
function cm.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP)
......
......@@ -267,18 +267,18 @@ function RushDuel.BaseSelectEffect(c,eff1hint,eff1con,eff1op,eff2hint,eff2con,ef
end
function RushDuel.SelectEffectCondition(eff1con,eff2con)
return function(e,tp,eg,ep,ev,re,r,rp)
return eff1con(e,tp,eg,ep,ev,re,r,rp) or eff2con(e,tp,eg,ep,ev,re,r,rp)
return eff1con(e,tp,eg,ep,ev,re,r,rp,false) or eff2con(e,tp,eg,ep,ev,re,r,rp,false)
end
end
function RushDuel.SelectEffectTarget(eff1con,eff2con)
return function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eff1con(e,tp,eg,ep,ev,re,r,rp) or eff2con(e,tp,eg,ep,ev,re,r,rp) end
if chk==0 then return eff1con(e,tp,eg,ep,ev,re,r,rp,false) or eff2con(e,tp,eg,ep,ev,re,r,rp,false) end
end
end
function RushDuel.SelectEffectOperation(eff1hint,eff1con,eff1op,eff2hint,eff2con,eff2op)
return function(e,tp,eg,ep,ev,re,r,rp)
local eff1=eff1con(e,tp,eg,ep,ev,re,r,rp)
local eff2=eff2con(e,tp,eg,ep,ev,re,r,rp)
local eff1=eff1con(e,tp,eg,ep,ev,re,r,rp,true)
local eff2=eff2con(e,tp,eg,ep,ev,re,r,rp,true)
local select=0
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EFFECT)
if eff1 and eff2 then
......
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