Commit bfb10d21 authored by POLYMER's avatar POLYMER

fix

parent 67b8f860
...@@ -17,7 +17,7 @@ function c40009036.initial_effect(c) ...@@ -17,7 +17,7 @@ function c40009036.initial_effect(c)
e7:SetDescription(aux.Stringid(40009036,1)) e7:SetDescription(aux.Stringid(40009036,1))
e7:SetCategory(CATEGORY_SPECIAL_SUMMON) e7:SetCategory(CATEGORY_SPECIAL_SUMMON)
e7:SetType(EFFECT_TYPE_ACTIVATE) e7:SetType(EFFECT_TYPE_ACTIVATE)
e7:SetCode(EVENT_CHAINING) e7:SetCode(EVENT_FREE_CHAIN)
--e7:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) --e7:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e7:SetCost(c40009036.spcost) e7:SetCost(c40009036.spcost)
e7:SetCondition(c40009036.spcon) e7:SetCondition(c40009036.spcon)
...@@ -124,20 +124,19 @@ function c40009036.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -124,20 +124,19 @@ function c40009036.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD) Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end end
function c40009036.spfilter1(c,e,tp,ec) function c40009036.spfilter1(c,e,tp)
return c:IsLink(1) and c:IsSetCard(0xf13) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_LINK,tp,false,false) return c:IsLink(1) and c:IsSetCard(0xf13) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_LINK,tp,false,false)
and Duel.GetLocationCountFromEx(tp,tp,rc,c)>0 and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
end end
function c40009036.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c40009036.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c40009036.spfilter1,tp,LOCATION_EXTRA,0,1,nil,e,tp,e:GetHandler()) end if chk==0 then return Duel.IsExistingMatchingCard(c40009036.spfilter1,tp,LOCATION_EXTRA,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end end
function c40009036.spop(e,tp,eg,ep,ev,re,r,rp) function c40009036.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c40009036.spfilter1,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,e:GetHandler()) local g=Duel.SelectMatchingCard(tp,c40009036.spfilter1,tp,LOCATION_EXTRA,0,1,1,nil,e,tp)
local tc=g:GetFirst() local tc=g:GetFirst()
if not tc then return end if not tc then return end
tc:SetMaterial(nil)
Duel.SpecialSummon(tc,SUMMON_TYPE_LINK,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,SUMMON_TYPE_LINK,tp,tp,false,false,POS_FACEUP)
tc:CompleteProcedure() tc:CompleteProcedure()
end end
\ No newline at end of file
...@@ -17,7 +17,7 @@ function c40009037.initial_effect(c) ...@@ -17,7 +17,7 @@ function c40009037.initial_effect(c)
e7:SetDescription(aux.Stringid(40009037,1)) e7:SetDescription(aux.Stringid(40009037,1))
e7:SetCategory(CATEGORY_SPECIAL_SUMMON) e7:SetCategory(CATEGORY_SPECIAL_SUMMON)
e7:SetType(EFFECT_TYPE_ACTIVATE) e7:SetType(EFFECT_TYPE_ACTIVATE)
e7:SetCode(EVENT_CHAINING) e7:SetCode(EVENT_FREE_CHAIN)
--e7:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) --e7:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e7:SetCost(c40009037.spcost) e7:SetCost(c40009037.spcost)
e7:SetCondition(c40009037.spcon) e7:SetCondition(c40009037.spcon)
......
...@@ -16,7 +16,7 @@ function c40009038.initial_effect(c) ...@@ -16,7 +16,7 @@ function c40009038.initial_effect(c)
e7:SetDescription(aux.Stringid(40009038,1)) e7:SetDescription(aux.Stringid(40009038,1))
e7:SetCategory(CATEGORY_SPECIAL_SUMMON) e7:SetCategory(CATEGORY_SPECIAL_SUMMON)
e7:SetType(EFFECT_TYPE_ACTIVATE) e7:SetType(EFFECT_TYPE_ACTIVATE)
e7:SetCode(EVENT_CHAINING) e7:SetCode(EVENT_FREE_CHAIN)
--e7:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) --e7:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e7:SetCost(c40009038.spcost) e7:SetCost(c40009038.spcost)
e7:SetCondition(c40009038.spcon) e7:SetCondition(c40009038.spcon)
......
...@@ -17,7 +17,7 @@ function c40009039.initial_effect(c) ...@@ -17,7 +17,7 @@ function c40009039.initial_effect(c)
e7:SetDescription(aux.Stringid(40009039,1)) e7:SetDescription(aux.Stringid(40009039,1))
e7:SetCategory(CATEGORY_SPECIAL_SUMMON) e7:SetCategory(CATEGORY_SPECIAL_SUMMON)
e7:SetType(EFFECT_TYPE_ACTIVATE) e7:SetType(EFFECT_TYPE_ACTIVATE)
e7:SetCode(EVENT_CHAINING) e7:SetCode(EVENT_FREE_CHAIN)
--e7:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) --e7:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e7:SetCost(c40009039.spcost) e7:SetCost(c40009039.spcost)
e7:SetCondition(c40009039.spcon) e7:SetCondition(c40009039.spcon)
......
...@@ -94,7 +94,7 @@ end ...@@ -94,7 +94,7 @@ end
function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and s.thfilter3(chkc) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and s.thfilter3(chkc) end
if chk==0 then return Duel.IsExistingTarget(s.thfilter3,tp,LOCATION_GRAVE,0,1,nil) and c:IsAbleToHand() end if chk==0 then return Duel.IsExistingTarget(s.thfilter3,tp,LOCATION_GRAVE,0,1,c) and c:IsAbleToHand() end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectTarget(tp,s.thfilter3,tp,LOCATION_GRAVE,0,1,1,c) local g=Duel.SelectTarget(tp,s.thfilter3,tp,LOCATION_GRAVE,0,1,1,c)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TODECK,g,1,0,0)
......
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