Commit e422e82d authored by mercury233's avatar mercury233 Committed by GitHub

fix 根絶の機皇神

parent 5a68f8af
...@@ -50,10 +50,10 @@ function c2992036.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,10 +50,10 @@ function c2992036.activate(e,tp,eg,ep,ev,re,r,rp)
if aux.NecroValleyNegateCheck(tg) then return end if aux.NecroValleyNegateCheck(tg) then return end
if tg:GetCount()>0 then if tg:GetCount()>0 then
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local b1=tg:IsExists(Card.IsAbleToHand,1,nil) local b1=tg:FilterCount(Card.IsAbleToHand,nil)==#tg
local ct=tg:FilterCount(Card.IsCanBeSpecialSummoned,nil,e,0,tp,true,false) local ct=tg:FilterCount(Card.IsCanBeSpecialSummoned,nil,e,0,tp,true,false)
local b2=ct>0 and ft>0 and (ct==1 or not Duel.IsPlayerAffectedByEffect(tp,59822133)) local b2=ct==#tg and ft>=ct and (ct==1 or not Duel.IsPlayerAffectedByEffect(tp,59822133))
local opt=0 local opt=-1
if b1 and not b2 then if b1 and not b2 then
opt=Duel.SelectOption(tp,1190) opt=Duel.SelectOption(tp,1190)
elseif not b1 and b2 then elseif not b1 and b2 then
...@@ -63,17 +63,8 @@ function c2992036.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,17 +63,8 @@ function c2992036.activate(e,tp,eg,ep,ev,re,r,rp)
end end
if opt==0 then if opt==0 then
Duel.SendtoHand(tg,nil,REASON_EFFECT) Duel.SendtoHand(tg,nil,REASON_EFFECT)
else elseif opt==1 then
local sg=tg:Filter(Card.IsCanBeSpecialSummoned,nil,e,0,tp,true,false) Duel.SpecialSummon(tg,0,tp,tp,true,false,POS_FACEUP)
if sg:GetCount()<=ft then
Duel.SpecialSummon(sg,0,tp,tp,true,false,POS_FACEUP)
else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local pg=sg:Select(tp,ft,ft,nil)
Duel.SpecialSummon(pg,0,tp,tp,true,false,POS_FACEUP)
sg:Sub(pg)
Duel.SendtoGrave(sg,REASON_RULE)
end
end end
end end
if e:IsHasType(EFFECT_TYPE_ACTIVATE) then if e:IsHasType(EFFECT_TYPE_ACTIVATE) 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