Commit 9bf9032a authored by wind2009's avatar wind2009

Revert ギャラクシーアイズ・アンチマター・ドラゴン

parent eefc83e9
Pipeline #42238 passed with stages
in 3 minutes and 23 seconds
...@@ -38,8 +38,7 @@ function s.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -38,8 +38,7 @@ function s.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
local ct=Duel.GetOperatedGroup():GetFirst() local ct=Duel.GetOperatedGroup():GetFirst()
if ct:IsType(TYPE_MONSTER) then if ct:IsType(TYPE_MONSTER) then
e:SetLabel(ct:GetFieldID()) e:SetLabel(ct:GetOriginalRace())
e:SetLabelObject(ct)
else else
e:SetLabel(0) e:SetLabel(0)
end end
...@@ -68,19 +67,14 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,19 +67,14 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(1) e1:SetValue(1)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local fid=e:GetLabel() local race=e:GetLabel()
if fid>0 then if e:GetLabel()~=0 and Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_DECK,0,1,nil,race)
local cc=e:GetLabelObject() and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
local race=cc:GetRace() Duel.BreakEffect()
if cc:GetFieldID()~=fid then race=cc:GetOriginalRace() end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
if fid~=0 and Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_DECK,0,1,nil,race) local g=Duel.SelectMatchingCard(tp,s.tgfilter,tp,LOCATION_DECK,0,1,1,nil,race)
and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then if g:GetCount()>0 then
Duel.BreakEffect() Duel.SendtoGrave(g,REASON_EFFECT)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,s.tgfilter,tp,LOCATION_DECK,0,1,1,nil,race)
if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT)
end
end end
end end
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