Commit be9409d5 authored by salix5's avatar salix5

fix

parent 4f495d52
......@@ -8,6 +8,7 @@ function c49959355.initial_effect(c)
e1:SetRange(LOCATION_MZONE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCountLimit(1,49959355)
e1:SetCost(c49959355.lvcost)
e1:SetTarget(c49959355.lvtg1)
e1:SetOperation(c49959355.lvop1)
c:RegisterEffect(e1)
......@@ -19,10 +20,15 @@ function c49959355.initial_effect(c)
e2:SetRange(LOCATION_MZONE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCountLimit(1,49959356)
e2:SetCost(c49959355.lvcost)
e2:SetTarget(c49959355.lvtg2)
e2:SetOperation(c49959355.lvop2)
c:RegisterEffect(e2)
end
function c49959355.lvcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function c49959355.filter(c)
return c:IsFaceup() and c:GetLevel()>0
end
......
......@@ -14,9 +14,12 @@ end
function c6260554.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsChainNegatable(ev) and (re:IsActiveType(TYPE_MONSTER) or re:IsHasType(EFFECT_TYPE_ACTIVATE))
end
function c6260554.filter(c)
return c:IsReleasable() and not c:IsStatus(STATUS_BATTLE_DESTROYED)
end
function c6260554.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_MZONE,0,nil,31533705)
if chk==0 then return g:GetCount()>0 and g:FilterCount(Card.IsReleasable,nil)==g:GetCount() end
if chk==0 then return g:GetCount()>0 and g:FilterCount(c6260554.filter,nil)==g:GetCount() end
Duel.Release(g,REASON_COST)
end
function c6260554.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