Commit e5df7eca authored by wind2009's avatar wind2009

Fix

parent 9e3bb213
Pipeline #41869 passed with stages
in 2 minutes and 21 seconds
......@@ -65,7 +65,7 @@ function s.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function s.spop2(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToChain() and Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)>0 then
if tc and tc:IsType(TYPE_MONSTER) and tc:IsRelateToChain() and Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)>0 then
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
......
......@@ -4,7 +4,7 @@ function s.initial_effect(c)
aux.AddCodeList(c,100200282)
--search
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,id+EFFECT_COUNT_CODE_OATH)
......
......@@ -42,7 +42,9 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
local b2=false
local og=Group.CreateGroup()
local tse=nil
if e:GetHandler():IsStatus(STATUS_CHAINING) then ch=ch-1 end
if ch>0 then
Debug.Message("ch="..ch)
tse=Duel.GetChainInfo(ch,CHAININFO_TRIGGERING_EFFECT)
b2=tse:IsHasType(EFFECT_TYPE_ACTIVATE)
and (tse:IsActiveType(TYPE_QUICKPLAY) or tse:GetHandler():GetType()==TYPE_SPELL) and Duel.IsChainDisablable(ev)
......
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