Commit a1645538 authored by salix5's avatar salix5

fix: No.6 先史遺産アトランタル, No.55 ゴゴゴゴライアス

parent 75e1ed6a
...@@ -41,7 +41,7 @@ function c46871387.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -41,7 +41,7 @@ function c46871387.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c46871387.thop(e,tp,eg,ep,ev,re,r,rp) function c46871387.thop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) and tc:IsRace(RACE_ROCK) and tc:IsAttribute(ATTRIBUTE_EARTH) then
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
end end
......
...@@ -22,7 +22,6 @@ function c9161357.initial_effect(c) ...@@ -22,7 +22,6 @@ function c9161357.initial_effect(c)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCost(c9161357.lpcost) e2:SetCost(c9161357.lpcost)
e2:SetOperation(c9161357.lpop) e2:SetOperation(c9161357.lpop)
e2:SetLabelObject(e1)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c9161357.xyz_number=6 c9161357.xyz_number=6
...@@ -46,7 +45,6 @@ function c9161357.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,7 +45,6 @@ function c9161357.eqop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
if not Duel.Equip(tp,tc,c,false) then return end if not Duel.Equip(tp,tc,c,false) then return end
e:SetLabelObject(tc)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_OWNER_RELATE) e1:SetProperty(EFFECT_FLAG_OWNER_RELATE)
...@@ -64,17 +62,22 @@ function c9161357.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,17 +62,22 @@ function c9161357.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(atk) e2:SetValue(atk)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
end end
tc:RegisterFlagEffect(9161357,RESET_EVENT+RESETS_STANDARD,0,1)
end end
end end
function c9161357.eqlimit(e,c) function c9161357.eqlimit(e,c)
return e:GetOwner()==c return e:GetOwner()==c
end end
function c9161357.lpfilter(c,tp)
return c:GetFlagEffect(9161357)~=0 and c:IsControler(tp) and c:IsLocation(LOCATION_SZONE) and c:IsAbleToGraveAsCost()
end
function c9161357.lpcost(e,tp,eg,ep,ev,re,r,rp,chk) function c9161357.lpcost(e,tp,eg,ep,ev,re,r,rp,chk)
local ec=e:GetLabelObject():GetLabelObject() local c=e:GetHandler()
if chk==0 then return Duel.GetCurrentPhase()==PHASE_MAIN1 local eqg=c:GetEquipGroup()
and ec and ec:GetEquipTarget()==e:GetHandler() and ec:IsAbleToGraveAsCost() if chk==0 then return Duel.GetCurrentPhase()==PHASE_MAIN1 and eqg:IsExists(c9161357.lpfilter,1,nil,tp)
and e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end and c:CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) c:RemoveOverlayCard(tp,1,1,REASON_COST)
local ec=eqg:FilterSelect(tp,c9161357.lpfilter,1,1,nil,tp)
Duel.SendtoGrave(ec,REASON_COST) Duel.SendtoGrave(ec,REASON_COST)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
......
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