Commit aa84d968 authored by POLYMER's avatar POLYMER

fix

parent a68d4567
......@@ -81,7 +81,7 @@ function c98920127.spfilter1(c,e,tp)
return c:IsType(TYPE_NORMAL) and c:IsRace(RACE_DRAGON) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c98920127.sptg1(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)>-1
and Duel.IsExistingMatchingCard(c98920127.spfilter1,tp,0x13,0,2,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,0x13)
end
......
......@@ -9,6 +9,7 @@ function c98920845.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e2:SetRange(LOCATION_HAND)
e2:SetCountLimit(1,98920845)
e2:SetCondition(c98920845.negcon)
e2:SetCost(c98920845.discost)
e2:SetTarget(c98920845.distg)
e2:SetOperation(c98920845.disop)
......@@ -27,6 +28,10 @@ end
function c98920845.thcfilter(c,tp)
return c:IsType(TYPE_MONSTER) and (c:IsSetCard(0x69) or c:IsType(TYPE_NORMAL)) and c:IsRace(RACE_DRAGON)
end
function c98920845.negcon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED)
and ep~=tp and re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and Duel.IsChainNegatable(ev)
end
function c98920845.discost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroupEx(tp,c98920845.thcfilter,1,REASON_COST,true,e:GetHandler(),tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
......
......@@ -211,7 +211,7 @@ function s.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return ft>=1 end
end
function c98941056.yyfilter(c)
return c:IsSetCard(0x9d)
return c:IsSummonLocation(LOCATION_EXTRA)
end
function c98941056.disfilter(c)
return c:IsSetCard(0x9d) and c:IsFaceup()
......@@ -229,14 +229,12 @@ function s.sfilter2(c,e,tp,oc)
and Duel.GetLocationCount(1-tp,LOCATION_MZONE,tp)>0
end
function c98941056.chtg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(s.filterx,tp,LOCATION_GRAVE,0,nil)
if chk==0 then return Duel.IsExistingMatchingCard(c98941056.yyfilter,tp,LOCATION_HAND,0,1,nil) and Duel.GetFlagEffect(tp,id)==0 and not Duel.IsPlayerAffectedByEffect(tp,59822133) and g:IsExists(s.sfilter1,1,nil,e,tp,g) end
if chk==0 then return Duel.IsExistingMatchingCard(c98941056.yyfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) and Duel.GetFlagEffect(tp,id)==0 and not Duel.IsPlayerAffectedByEffect(tp,59822133) end
Duel.RegisterFlagEffect(tp,id,RESET_CHAIN,0,1)
end
function c98941056.chop(e,tp,eg,ep,ev,re,r,rp)
local g=Group.CreateGroup()
local c=e:GetHandler()
if c:IsFacedown() or not c:IsOnField() then return end
Duel.ChangeTargetCard(ev,g)
Duel.ChangeChainOperation(ev,c98941056.repop)
end
......@@ -259,7 +257,7 @@ function c98941056.repop(e,tp,eg,ep,ev,re,r,rp)
local ct1=g3:GetClassCount(Card.GetCode)
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_ATOHAND)
local sg1=g4:SelectSubGroup(1-tp,aux.TRUE,false,1,ct1)
if sg1 and sg:GetCount()>0 then
if sg1 and sg1:GetCount()>0 then
Duel.SendtoHand(sg1,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg1)
Duel.ShuffleHand(1-tp)
......
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