Commit aa4c16f3 authored by mercury233's avatar mercury233 Committed by GitHub

fix No.38 希望魁竜タイタニック・ギャラクシー

parent bbf2dd1c
...@@ -77,7 +77,13 @@ function c63767246.atkfilter1(c,tp) ...@@ -77,7 +77,13 @@ function c63767246.atkfilter1(c,tp)
and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousControler(tp)
end end
function c63767246.atkcon(e,tp,eg,ep,ev,re,r,rp) function c63767246.atkcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c63767246.atkfilter1,1,nil,tp) local og=e:GetLabelObject()
if og then og:DeleteGroup() end
local g=eg:Filter(c63767246.atkfilter1,nil,tp)
if #g==0 then return false end
g:KeepAlive()
e:SetLabelObject(g)
return true
end end
function c63767246.atkfilter2(c) function c63767246.atkfilter2(c)
return c:IsFaceup() and c:IsType(TYPE_XYZ) return c:IsFaceup() and c:IsType(TYPE_XYZ)
...@@ -85,9 +91,6 @@ end ...@@ -85,9 +91,6 @@ end
function c63767246.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c63767246.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c63767246.atkfilter2(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c63767246.atkfilter2(chkc) end
if chk==0 then return Duel.IsExistingTarget(c63767246.atkfilter2,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(c63767246.atkfilter2,tp,LOCATION_MZONE,0,1,nil) end
local g=eg:Filter(c63767246.atkfilter1,nil,tp)
g:KeepAlive()
e:SetLabelObject(g)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c63767246.atkfilter2,tp,LOCATION_MZONE,0,1,1,nil) Duel.SelectTarget(tp,c63767246.atkfilter2,tp,LOCATION_MZONE,0,1,1,nil)
end end
...@@ -108,4 +111,5 @@ function c63767246.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -108,4 +111,5 @@ function c63767246.atkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
e:GetLabelObject():DeleteGroup()
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