Commit 1ff3d27a authored by VanillaSalt's avatar VanillaSalt

fix

parent f809dfae
......@@ -61,6 +61,7 @@ function c20007374.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(c20007374.eqlimit)
c:RegisterEffect(e1)
end
local fid=c:GetFieldID()
tc:RegisterFlagEffect(20007374,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1,fid)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
......
......@@ -21,10 +21,10 @@ function c26211048.eqcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end
function c26211048.eqfilter(c)
return c:IsLocation(LOCATION_MZONE) or c:IsLocation(LOCATION_GRAVE) and not c:IsForbidden()
return c:IsLocation(LOCATION_MZONE) or c:IsType(TYPE_MONSTER) and not c:IsForbidden()
end
function c26211048.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return c26211048.eqfilter(chkc) and chkc:IsControler(1-tp) and chkc:IsType(TYPE_MONSTER) end
if chkc then return chkc:IsLocation(LOCATION_GRAVE+LOCATION_MZONE) and chkc:IsControler(1-tp) and c26211048.eqfilter(chkc) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingTarget(c26211048.eqfilter,tp,0,LOCATION_GRAVE+LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
......
......@@ -42,14 +42,11 @@ function c44508094.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=e:GetHandler():IsReleasable()
local b2=Duel.IsExistingMatchingCard(c44508094.cfcost,tp,LOCATION_GRAVE,0,1,nil)
if chk==0 then return b1 or b2 end
if (b2 and b1 and Duel.SelectYesNo(tp,aux.Stringid(84012625,0)))
or (b2 and not b1) then
if b2 and (not b1 or Duel.SelectYesNo(tp,aux.Stringid(84012625,0))) then
local tg=Duel.GetFirstMatchingCard(c44508094.cfcost,tp,LOCATION_GRAVE,0,nil)
Duel.Remove(tg,POS_FACEUP,REASON_COST)
e:SetLabel(0)
else
Duel.Release(e:GetHandler(),REASON_COST)
e:SetLabel(1)
end
end
function c44508094.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -48,14 +48,11 @@ function c74892653.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=e:GetHandler():IsReleasable()
local b2=Duel.IsExistingMatchingCard(c74892653.cfcost,tp,LOCATION_GRAVE,0,1,nil)
if chk==0 then return b1 or b2 end
if (b2 and b1 and Duel.SelectYesNo(tp,aux.Stringid(84012625,0)))
or (b2 and not b1) then
if b2 and (not b1 or Duel.SelectYesNo(tp,aux.Stringid(84012625,0))) then
local tg=Duel.GetFirstMatchingCard(c74892653.cfcost,tp,LOCATION_GRAVE,0,nil)
Duel.Remove(tg,POS_FACEUP,REASON_COST)
e:SetLabel(0)
else
Duel.Release(e:GetHandler(),REASON_COST)
e:SetLabel(1)
end
end
function c74892653.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
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