Commit eab33236 authored by VanillaSalt's avatar VanillaSalt

fix

parent b2979f24
...@@ -21,7 +21,6 @@ function c12600382.initial_effect(c) ...@@ -21,7 +21,6 @@ function c12600382.initial_effect(c)
e3:SetType(EFFECT_TYPE_SINGLE) e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e3:SetCode(EFFECT_SPSUMMON_CONDITION) e3:SetCode(EFFECT_SPSUMMON_CONDITION)
e3:SetValue(c12600382.splimit)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--atkup --atkup
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
...@@ -44,10 +43,7 @@ function c12600382.initial_effect(c) ...@@ -44,10 +43,7 @@ function c12600382.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c12600382.efdes(e,re) function c12600382.efdes(e,re)
return not re:GetHandler():IsType(TYPE_MONSTER) return re:IsActiveType(TYPE_SPELL+TYPE_TRAP)
end
function c12600382.splimit(e,se,sp,st)
return st==(SUMMON_TYPE_SPECIAL+332449)
end end
function c12600382.atkcon(e,tp,eg,ep,ev,re,r,rp) function c12600382.atkcon(e,tp,eg,ep,ev,re,r,rp)
return tp==Duel.GetTurnPlayer() return tp==Duel.GetTurnPlayer()
......
...@@ -18,11 +18,11 @@ function c33244944.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -18,11 +18,11 @@ function c33244944.condition(e,tp,eg,ep,ev,re,r,rp)
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,nil,33396948) and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,nil,33396948)
end end
function c33244944.filter(c,e,tp) function c33244944.filter(c,e,tp)
return c:IsCode(12600382) and c:IsCanBeSpecialSummoned(e,332449,tp,true,true) return c:IsCode(12600382) and c:IsCanBeSpecialSummoned(e,0,tp,true,true)
end end
function c33244944.target(e,tp,eg,ep,ev,re,r,rp,chk) function c33244944.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
Duel.IsExistingMatchingCard(c33244944.filter,tp,LOCATION_HAND,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c33244944.filter,tp,LOCATION_HAND,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
end end
function c33244944.activate(e,tp,eg,ep,ev,re,r,rp) function c33244944.activate(e,tp,eg,ep,ev,re,r,rp)
...@@ -31,7 +31,7 @@ function c33244944.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,7 +31,7 @@ function c33244944.activate(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.SelectMatchingCard(tp,c33244944.filter,tp,LOCATION_HAND,0,1,1,nil,e,tp) local tg=Duel.SelectMatchingCard(tp,c33244944.filter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
if tg:GetCount()>0 then if tg:GetCount()>0 then
local tc=tg:GetFirst() local tc=tg:GetFirst()
Duel.SpecialSummon(tc,332449,tp,tp,true,true,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,true,true,POS_FACEUP)
tc:CompleteProcedure() tc:CompleteProcedure()
end end
end end
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