Commit b2fe9a15 authored by Amiya's avatar Amiya

修复

parent d4ebbcd3
Pipeline #43627 passed with stages
in 2 minutes and 39 seconds
...@@ -26,7 +26,7 @@ function s.initial_effect(c) ...@@ -26,7 +26,7 @@ function s.initial_effect(c)
e2:SetCategory(CATEGORY_DAMAGE) e2:SetCategory(CATEGORY_DAMAGE)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_TO_GRAVE) e2:SetCode(EVENT_TO_GRAVE)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_MZONE)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCountLimit(1) e2:SetCountLimit(1)
e2:SetCondition(s.damcon) e2:SetCondition(s.damcon)
......
...@@ -24,7 +24,8 @@ function s.initial_effect(c) ...@@ -24,7 +24,8 @@ function s.initial_effect(c)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1)) e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_DESTROY) e2:SetCategory(CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1) e2:SetCountLimit(1)
e2:SetCost(s.descost) e2:SetCost(s.descost)
......
...@@ -105,7 +105,7 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -105,7 +105,7 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
end end
function s.sptg3(e,tp,eg,ep,ev,re,r,rp,chk) function s.sptg3(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE,0,1,e:GetHandler(),e,tp) end and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_GRAVE,0,1,e:GetHandler(),e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
end end
function s.spop3(e,tp,eg,ep,ev,re,r,rp) function s.spop3(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -44,6 +44,9 @@ end ...@@ -44,6 +44,9 @@ end
function s.ffilter(c) function s.ffilter(c)
return not c:IsSummonableCard() return not c:IsSummonableCard()
end end
function s.splimit(e,se,sp,st)
return bit.band(st,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION
end
function s.condition(e,tp,eg,ep,ev,re,r,rp) function s.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsSummonType(SUMMON_TYPE_FUSION) or re:GetHandler()==c return c:IsSummonType(SUMMON_TYPE_FUSION) or re:GetHandler()==c
......
...@@ -33,7 +33,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -33,7 +33,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,3,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,3,tp,LOCATION_DECK)
end end
function s.activate(e,tp,eg,ep,ev,re,r,rp) function s.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(s.thfilter,tp,LOCATION_DECK,0,nil)
if g:GetClassCount(Card.GetCode)<3 then return end if g:GetClassCount(Card.GetCode)<3 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg=g:SelectSubGroup(tp,aux.dncheck,false,3,3) local sg=g:SelectSubGroup(tp,aux.dncheck,false,3,3)
......
...@@ -25,7 +25,12 @@ function s.initial_effect(c) ...@@ -25,7 +25,12 @@ function s.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function s.spfilter(c,e,tp) function s.spfilter(c,e,tp)
return c:IsSetCard(0x1144) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) if not c:IsSetCard(0x1144) or not c:IsType(TYPE_MONSTER) then return false end
if c:IsCode(101305005,101305006,101305007) then
return c:IsCanBeSpecialSummoned(e,0,tp,false,true,POS_FACEUP_DEFENSE)
else
return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end
end end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk) function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
...@@ -40,38 +45,46 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,38 +45,46 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.spfilter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.spfilter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp)
if g:GetCount()>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENSE)~=0 local tc=g:GetFirst()
and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,2,nil) if tc then
and Duel.IsExistingMatchingCard(aux.NegateAnyFilter,tp,0,LOCATION_ONFIELD,1,nil) local res=false
and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then if tc:IsCode(101305005,101305006,101305007) then
Duel.BreakEffect() res=Duel.SpecialSummon(tc,0,tp,tp,false,true,POS_FACEUP_DEFENSE)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE) else
local g=Duel.SelectMatchingCard(tp,aux.NegateAnyFilter,tp,0,LOCATION_ONFIELD,1,1,nil) res=Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
Duel.HintSelection(g) end
local tc=g:GetFirst() if res and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,2,nil)
Duel.NegateRelatedChain(tc,RESET_TURN_SET) and Duel.IsExistingMatchingCard(aux.NegateAnyFilter,tp,0,LOCATION_ONFIELD,1,nil)
local e1=Effect.CreateEffect(c) and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
e1:SetType(EFFECT_TYPE_SINGLE) Duel.BreakEffect()
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE)
e1:SetCode(EFFECT_DISABLE) local g=Duel.SelectMatchingCard(tp,aux.NegateAnyFilter,tp,0,LOCATION_ONFIELD,1,1,nil)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) Duel.HintSelection(g)
tc:RegisterEffect(e1) local tc=g:GetFirst()
local e2=Effect.CreateEffect(c) Duel.NegateRelatedChain(tc,RESET_TURN_SET)
e2:SetType(EFFECT_TYPE_SINGLE) local e1=Effect.CreateEffect(c)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE_EFFECT) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetValue(RESET_TURN_SET) e1:SetCode(EFFECT_DISABLE)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2) tc:RegisterEffect(e1)
if tc:IsType(TYPE_TRAPMONSTER) then local e2=Effect.CreateEffect(c)
local e3=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE)
e3:SetType(EFFECT_TYPE_SINGLE) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e2:SetCode(EFFECT_DISABLE_EFFECT)
e3:SetCode(EFFECT_DISABLE_TRAPMONSTER) e2:SetValue(RESET_TURN_SET)
e3:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e3) tc:RegisterEffect(e2)
if tc:IsType(TYPE_TRAPMONSTER) then
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e3:SetCode(EFFECT_DISABLE_TRAPMONSTER)
e3:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e3)
end
Duel.Destroy(tc,REASON_EFFECT)
end end
Duel.Destroy(tc,REASON_EFFECT)
end end
end end
function s.filter1(c,e) function s.filter1(c,e)
...@@ -97,7 +110,6 @@ function s.fsptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -97,7 +110,6 @@ function s.fsptg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
return res return res
end end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end end
function s.fspop(e,tp,eg,ep,ev,re,r,rp) function s.fspop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -26,7 +26,6 @@ function s.initial_effect(c) ...@@ -26,7 +26,6 @@ function s.initial_effect(c)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
e3:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e3:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e3:SetCountLimit(1,id+o)
e3:SetCost(s.poscost) e3:SetCost(s.poscost)
e3:SetTarget(s.postg) e3:SetTarget(s.postg)
e3:SetOperation(s.posop) e3:SetOperation(s.posop)
...@@ -66,7 +65,7 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,7 +65,7 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.costfilter(c) function s.costfilter(c)
return c:IsFaceup() and c:IsSetCard(id) and c:IsAbleToGraveAsCost() return c:IsFaceup() and c:IsCode(id) and c:IsAbleToGraveAsCost()
end end
function s.poscost(e,tp,eg,ep,ev,re,r,rp,chk) function s.poscost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
......
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