Commit 46ae73e0 authored by mallu11's avatar mallu11 Committed by GitHub

fix ギャラクシーアイズ FA・フォトン・ドラゴン (#1368)

parent 2ff12208
...@@ -39,19 +39,19 @@ function c39030163.mtfilter(c,e) ...@@ -39,19 +39,19 @@ function c39030163.mtfilter(c,e)
end end
function c39030163.mttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c39030163.mttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local g=e:GetHandler():GetEquipGroup() local g=e:GetHandler():GetEquipGroup()
if chkc then return g:IsContains(chkc) and chkc:IsCanBeEffectTarget(e) end if chkc then return g:IsContains(chkc) and c39030163.mtfilter(chkc,e) end
if chk==0 then return e:GetHandler():IsType(TYPE_XYZ) and g:IsExists(c39030163.mtfilter,1,nil,e) end if chk==0 then return e:GetHandler():IsType(TYPE_XYZ) and g:IsExists(c39030163.mtfilter,1,nil,e) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local tg=g:FilterSelect(tp,c39030163.mtfilter,1,2,nil,e) local tg=g:FilterSelect(tp,c39030163.mtfilter,1,2,nil,e)
Duel.SetTargetCard(tg) Duel.SetTargetCard(tg)
end end
function c39030163.mtfilter(c,e) function c39030163.matfilter(c,e)
return c:IsRelateToEffect(e) and not c:IsImmuneToEffect(e) return c:IsRelateToEffect(e) and not c:IsImmuneToEffect(e)
end end
function c39030163.mtop(e,tp,eg,ep,ev,re,r,rp) function c39030163.mtop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) or c:IsFacedown() then return end if not c:IsRelateToEffect(e) or c:IsFacedown() then return end
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(c39030163.mtfilter,nil,e) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(c39030163.matfilter,nil,e)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.Overlay(c,g) Duel.Overlay(c,g)
end end
......
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