Commit 5bc54f2c authored by Satty's avatar Satty

fix

parent 74ef1f29
...@@ -100,7 +100,7 @@ function s.cfilter(c) ...@@ -100,7 +100,7 @@ function s.cfilter(c)
return c:IsType(TYPE_TUNER) and not c:IsPublic() return c:IsType(TYPE_TUNER) and not c:IsPublic()
end end
function s.descost(e,tp,eg,ep,ev,re,r,rp,chk) function s.descost(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=Duel.GetMatchingGroupCount(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD) local ct=Duel.GetMatchingGroupCount(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND,0,1,ct,nil) local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND,0,1,ct,nil)
...@@ -116,11 +116,12 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -116,11 +116,12 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function s.desop(e,tp,eg,ep,ev,re,r,rp) function s.desop(e,tp,eg,ep,ev,re,r,rp)
local ct=e:GetLabel() local ct=e:GetLabel()
if Duel.GetFieldGroup(tp,LOCATION_ONFIELD,LOCATION_ONFIELD)<ct then return end if Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,LOCATION_ONFIELD)<ct then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,LOCATION_ONFIELD):Select(tp,ct,ct,nil) local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
if #g>0 then local sg=g:Select(tp,ct,ct,nil)
Duel.Destroy(g,REASON_EFFECT) if #sg>0 then
Duel.Destroy(sg,REASON_EFFECT)
end end
end end
function s.filter(c) function s.filter(c)
......
...@@ -18,7 +18,7 @@ function c75011050.initial_effect(c) ...@@ -18,7 +18,7 @@ function c75011050.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetCondition(c75011050.thcon1) e2:SetCondition(c75011050.thcon1)
e2:SetCost(aux.bfgcost) --e2:SetCost(aux.bfgcost)
e2:SetTarget(c75011050.thtg) e2:SetTarget(c75011050.thtg)
e2:SetOperation(c75011050.thop) e2:SetOperation(c75011050.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
......
...@@ -3,7 +3,7 @@ function c82000529.initial_effect(c) ...@@ -3,7 +3,7 @@ function c82000529.initial_effect(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_SZONE) e1:SetRange(LOCATION_SZONE)
e1:SetCountLimit(1) e1:SetCountLimit(2,82000529*2)
e1:SetTarget(c82000529.settg) e1:SetTarget(c82000529.settg)
e1:SetOperation(c82000529.setop) e1:SetOperation(c82000529.setop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -16,7 +16,7 @@ function c82000529.initial_effect(c) ...@@ -16,7 +16,7 @@ function c82000529.initial_effect(c)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e4:SetCode(EVENT_PHASE+PHASE_END) e4:SetCode(EVENT_PHASE+PHASE_END)
e4:SetCountLimit(2,82000529) e4:SetCountLimit(1,82000529*3)
e4:SetRange(LOCATION_SZONE) e4:SetRange(LOCATION_SZONE)
e4:SetCondition(c82000529.sdescon) e4:SetCondition(c82000529.sdescon)
e4:SetOperation(c82000529.sdesop) e4:SetOperation(c82000529.sdesop)
......
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