Commit ac0d50f6 authored by mercury233's avatar mercury233

fix

parent b3d2d003
...@@ -79,7 +79,7 @@ function c100259005.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,7 +79,7 @@ function c100259005.thop2(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c100259005.atkfilter(c) function c100259005.atkfilter(c)
return c:IsFaceup() and c:IsLevelBelow(8) and c:IsRace(RACE_DRAGON) return c:IsFaceup() and c:IsLevelAbove(8) and c:IsRace(RACE_DRAGON)
end end
function c100259005.atktg(e,tp,eg,ep,ev,re,r,rp,chk) function c100259005.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c100259005.atkfilter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c100259005.atkfilter,tp,LOCATION_MZONE,0,1,nil) end
......
...@@ -67,14 +67,15 @@ function c100259029.atkfilter(c) ...@@ -67,14 +67,15 @@ function c100259029.atkfilter(c)
return c:IsFaceup() and c:IsSetCard(0x48) and c:IsType(TYPE_XYZ) return c:IsFaceup() and c:IsSetCard(0x48) and c:IsType(TYPE_XYZ)
end end
function c100259029.spop2(e,tp,eg,ep,ev,re,r,rp) function c100259029.spop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local c=e:GetHandler() local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c100259029.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c100259029.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp)
local tc=g:GetFirst() local tc=g:GetFirst()
local res=0 local res=0
if tc then if tc then
if Duel.IsExistingMatchingCard(c100259029.matfilter,tp,LOCATION_MZONE,0,1,nil) and tc:IsCanOverlay() if Duel.IsExistingMatchingCard(c100259029.matfilter,tp,LOCATION_MZONE,0,1,nil) and tc:IsCanOverlay()
and (not tc:IsCanBeSpecialSummoned(e,0,tp,false,false) or Duel.GetLocation(tp,LOCATION_MZONE)<=0 or Duel.SelectOption(tp,1190,aux.Stringid(100259029,2))==1) then and (not tc:IsCanBeSpecialSummoned(e,0,tp,false,false) or Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
or Duel.SelectOption(tp,1152,aux.Stringid(100259029,2))==1) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local sg=Duel.SelectMatchingCard(tp,c100259029.matfilter,tp,LOCATION_MZONE,0,1,1,nil) local sg=Duel.SelectMatchingCard(tp,c100259029.matfilter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.Overlay(sg:GetFirst(),Group.FromCards(tc)) Duel.Overlay(sg:GetFirst(),Group.FromCards(tc))
......
...@@ -42,6 +42,7 @@ function c100260020.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -42,6 +42,7 @@ function c100260020.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,g:GetCount(),0,0)
end end
function c100260020.spop(e,tp,eg,ep,ev,re,r,rp) function c100260020.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft<=0 then return end if ft<=0 then return end
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
......
...@@ -4,7 +4,7 @@ function c101012073.initial_effect(c) ...@@ -4,7 +4,7 @@ function c101012073.initial_effect(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(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)
e1:SetCondition(c101012073.condition) e1:SetCondition(c101012073.condition)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--maintain --maintain
......
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