Commit 3400c340 authored by Nemo Ma's avatar Nemo Ma

fix

parent 7dfedd2e
......@@ -14,7 +14,7 @@ function s.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_NO_TURN_RESET)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER_E)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER)
e1:SetCountLimit(1)
e1:SetTarget(s.thtg)
e1:SetOperation(s.thop)
......@@ -31,7 +31,7 @@ function s.initial_effect(c)
end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
local ct=c:GetMutualLinkedGroup():FilterCount(Card.IsLinkMonster,nil)
local ct=c:GetMutualLinkedGroupCount()
if chkc then return chkc:IsLocation(LOCATION_ONFIELD+LOCATION_GRAVE) and chkc:IsAbleToHand() end
if chk==0 then return ct>0 and Duel.IsExistingTarget(Card.IsAbleToHand,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
......@@ -40,11 +40,11 @@ function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
c:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(5043010,2))
end
function s.thop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetTargetCards(e)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
Duel.SendtoHand(g,nil,REASON_EFFECT)
end
function s.aclimit(e,re,tp)
local tc=re:GetHandler()
return tc:IsLocation(LOCATION_MZONE) and tc:IsFaceup() and tc:IsSummonType(SUMMON_TYPE_SPECIAL)
and not tc:IsLinked() and re:IsActiveType(TYPE_MONSTER)
return tc:IsLocation(LOCATION_MZONE) and tc:IsFaceup()
and not tc:IsLinkState() and re:IsActiveType(TYPE_MONSTER)
end
......@@ -55,6 +55,7 @@ function cm.filter2(c,p)
return c:IsControler(p) and c:IsLocation(LOCATION_MZONE) and c:GetSequence()<5
end
function cm.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local tg=g:Filter(Card.IsRelateToEffect,nil,e)
if tg:GetCount()<=0 then return end
......
......@@ -48,7 +48,7 @@ function c98920632.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end
function c98920632.spop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(c98920632.spfilter),tp,LOCATION_DECK,0,nil,e,tp)
local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(c98920632.filter),tp,LOCATION_DECK,0,nil,e,tp)
if Duel.IsPlayerAffectedByEffect(tp,59822133) or Duel.GetLocationCount(tp,LOCATION_MZONE)<=1 or g:GetCount()==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=g:SelectSubGroup(tp,c98920632.fselect,false,2,2,tp)
......@@ -77,7 +77,7 @@ function c98920632.spop(e,tp,eg,ep,ev,re,r,rp)
if sg:FilterCount(Card.IsLocation,nil,LOCATION_MZONE)<2 then return end
local xyzg=Duel.GetMatchingGroup(Card.IsXyzSummonable,tp,LOCATION_EXTRA,0,nil,sg,2,2)
local tg=Duel.GetMatchingGroup(c98920632.synfilter,tp,LOCATION_EXTRA,0,nil,sg)
if xyzg:GetCount()>0 and Duel.SelectOption(tp,1165,1164)==0 then
if xyzg:GetCount()>0 and (tg:GetCount()==0 or Duel.SelectOption(tp,1165,1164)==0) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local xyz=xyzg:Select(tp,1,1,nil):GetFirst()
Duel.XyzSummon(tp,xyz,sg)
......
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