Commit 025e884f authored by salix5's avatar salix5

fix

parent c3ab36fb
...@@ -20,12 +20,13 @@ function c2055403.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -20,12 +20,13 @@ function c2055403.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetTargetCard(eg) Duel.SetTargetCard(eg)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,ct,0,0) Duel.SetOperationInfo(0,CATEGORY_TODECK,g,ct,0,0)
end end
function c2055403.activate(e,tp,eg,ep,ev,re,r,rp) function c2055403.activate(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(c2055403.filter,nil,tp):Filter(Card.IsRelateToEffect,nil,e) local g=eg:Filter(c2055403.filter,nil,tp):Filter(Card.IsRelateToEffect,nil,e)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoDeck(g,nil,2,REASON_EFFECT) Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
local og=Duel.GetOperatedGroup() local og=Duel.GetOperatedGroup()
local ct=og:FilterCount(Card.IsLocation,nil,LOCATION_DECK) local ct=og:FilterCount(Card.IsLocation,nil,LOCATION_DECK+LOCATION_EXTRA)
if ct>0 then if ct>0 then
Duel.BreakEffect() Duel.BreakEffect()
if Duel.GetLP(tp)>=ct*1000 then if Duel.GetLP(tp)>=ct*1000 then
......
...@@ -9,7 +9,7 @@ function c50913601.initial_effect(c) ...@@ -9,7 +9,7 @@ function c50913601.initial_effect(c)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetRange(LOCATION_fZONE) e2:SetRange(LOCATION_FZONE)
e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e2:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_DRAGON+RACE_WINDBEAST+RACE_THUNDER)) e2:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_DRAGON+RACE_WINDBEAST+RACE_THUNDER))
e2:SetValue(200) e2:SetValue(200)
......
...@@ -30,8 +30,9 @@ function c58753372.filter2(c,tp) ...@@ -30,8 +30,9 @@ function c58753372.filter2(c,tp)
and Duel.IsExistingMatchingCard(c58753372.filter1,tp,LOCATION_MZONE,0,1,c) and Duel.IsExistingMatchingCard(c58753372.filter1,tp,LOCATION_MZONE,0,1,c)
end end
function c58753372.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c58753372.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local g1=Duel.GetMatchingGroup(c58753372.filter1,tp,LOCATION_MZONE,0,nil)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c58753372.filter2(chkc,tp) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c58753372.filter2(chkc,tp) end
if chk==0 then return Duel.IsExistingTarget(c58753372.filter2,tp,LOCATION_MZONE,0,1,nil,tp) end if chk==0 then return Duel.IsExistingTarget(c58753372.filter2,tp,LOCATION_MZONE,0,1,nil,tp) and g1:GetClassCount(Card.GetLevel)>1 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.SelectTarget(tp,c58753372.filter2,tp,LOCATION_MZONE,0,1,1,nil,tp) Duel.SelectTarget(tp,c58753372.filter2,tp,LOCATION_MZONE,0,1,1,nil,tp)
end end
......
...@@ -75,7 +75,7 @@ function c84025439.imcon(e) ...@@ -75,7 +75,7 @@ function c84025439.imcon(e)
return e:GetHandler():GetOverlayGroup():GetClassCount(Card.GetCode)>=4 return e:GetHandler():GetOverlayGroup():GetClassCount(Card.GetCode)>=4
end end
function c84025439.efilter(e,te) function c84025439.efilter(e,te)
return not te:GetHandler():IsSetCard(0xdc) return not te:GetOwner():IsSetCard(0xdc)
end end
function c84025439.drcon(e) function c84025439.drcon(e)
return e:GetHandler():GetOverlayGroup():GetClassCount(Card.GetCode)>=6 return e:GetHandler():GetOverlayGroup():GetClassCount(Card.GetCode)>=6
......
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