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,12 +67,8 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,12 +67,8 @@ 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()
local race=cc:GetRace()
if cc:GetFieldID()~=fid then race=cc:GetOriginalRace() end
if fid~=0 and Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_DECK,0,1,nil,race)
and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
...@@ -83,5 +78,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -83,5 +78,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
end end
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