Commit a341e1b5 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c65810015.lua

parent fde6e7e5
...@@ -62,15 +62,14 @@ end ...@@ -62,15 +62,14 @@ end
function c65810015.cost2(e,tp,eg,ep,ev,re,r,rp,chk) function c65810015.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() and Duel.GetMZoneCount(tp,e:GetHandler())>0 end
Duel.SendtoGrave(e:GetHandler(),REASON_COST) Duel.SendtoGrave(e:GetHandler(),REASON_COST)
end end
function c65810015.spfilter(c,e,tp) function c65810015.spfilter(c,e,tp)
return c:IsSetCard(0xa31) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xa31) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c65810015.target2(e,tp,eg,ep,ev,re,r,rp,chk) function c65810015.target2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.IsExistingMatchingCard(c65810015.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end
and Duel.IsExistingMatchingCard(c65810015.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK)
end end
function c65810015.activate2(e,tp,eg,ep,ev,re,r,rp) function c65810015.activate2(e,tp,eg,ep,ev,re,r,rp)
...@@ -102,4 +101,4 @@ function c65810015.cost3(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -102,4 +101,4 @@ function c65810015.cost3(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c65810015.activate3(e,tp,eg,ep,ev,re,r,rp) function c65810015.activate3(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateAttack() Duel.NegateAttack()
end end
\ No newline at end of file
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