Commit f386e000 authored by mercury233's avatar mercury233

fix

parent a05b2870
...@@ -8,7 +8,6 @@ function c100423004.initial_effect(c) ...@@ -8,7 +8,6 @@ function c100423004.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetCountLimit(1,100423004+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c100423004.target) e1:SetTarget(c100423004.target)
e1:SetOperation(c100423004.activate) e1:SetOperation(c100423004.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
......
...@@ -60,6 +60,6 @@ end ...@@ -60,6 +60,6 @@ end
function c100423026.ccop(e,tp,eg,ep,ev,re,r,rp) function c100423026.ccop(e,tp,eg,ep,ev,re,r,rp)
Duel.SetChainLimit(c100423026.chainlm) Duel.SetChainLimit(c100423026.chainlm)
end end
function c100423026.chainlm(e,rp,tp) function c100423026.chainlm(e,ep,tp)
return tp==rp return tp==ep
end end
...@@ -55,6 +55,7 @@ function c100423047.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,6 +55,7 @@ function c100423047.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsExistingMatchingCard(c100423047.cfilter,tp,LOCATION_HAND,0,1,nil,e,tp,lsc,rsc) and Duel.SelectYesNo(tp,aux.Stringid(100423047,0)) then if Duel.IsExistingMatchingCard(c100423047.cfilter,tp,LOCATION_HAND,0,1,nil,e,tp,lsc,rsc) and Duel.SelectYesNo(tp,aux.Stringid(100423047,0)) then
Duel.BreakEffect() Duel.BreakEffect()
local count=math.min(ct,mz) local count=math.min(ct,mz)
if Duel.IsPlayerAffectedByEffect(tp,59822133) then count=1 end
local g=Duel.GetMatchingGroup(c100423047.cfilter,tp,LOCATION_HAND,0,nil,e,tp,lsc,rsc) local g=Duel.GetMatchingGroup(c100423047.cfilter,tp,LOCATION_HAND,0,nil,e,tp,lsc,rsc)
local sg=g:SelectSubGroup(tp,c100423047.fselect,false,1,count,tp) local sg=g:SelectSubGroup(tp,c100423047.fselect,false,1,count,tp)
flag=Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) flag=Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
......
...@@ -55,7 +55,7 @@ function c101011023.setfilter(c,e,tp) ...@@ -55,7 +55,7 @@ function c101011023.setfilter(c,e,tp)
return c:IsSetCard(0x8d) and (c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE) or c:IsSSetable()) return c:IsSetCard(0x8d) and (c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE) or c:IsSSetable())
end end
function c101011023.posfilter(c) function c101011023.posfilter(c)
return c:IsFaceup() and c:IsCanChangePosition() return c:IsFaceup() and c:IsCanTurnSet()
end end
function c101011023.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c101011023.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp)
......
...@@ -44,6 +44,7 @@ function c101011047.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -44,6 +44,7 @@ function c101011047.target(e,tp,eg,ep,ev,re,r,rp,chk)
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 c101011047.activate(e,tp,eg,ep,ev,re,r,rp) function c101011047.activate(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local lg=e:GetHandler():GetLinkedGroup() local lg=e:GetHandler():GetLinkedGroup()
local b1=Duel.IsPlayerCanDraw(tp,2) and lg:IsExists(Card.IsType,1,nil,TYPE_RITUAL) local b1=Duel.IsPlayerCanDraw(tp,2) and lg:IsExists(Card.IsType,1,nil,TYPE_RITUAL)
local b2=Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(c101011047.spfilter),tp,LOCATION_GRAVE,0,1,nil,e,tp) and lg:IsExists(Card.IsType,1,nil,TYPE_FUSION) local b2=Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(c101011047.spfilter),tp,LOCATION_GRAVE,0,1,nil,e,tp) and lg:IsExists(Card.IsType,1,nil,TYPE_FUSION)
......
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