Commit 589c8972 authored by Tachibana's avatar Tachibana

tnndx

parent 07dc07c8
......@@ -34,7 +34,7 @@ function c50218505.initial_effect(c)
end
function c50218505.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD,nil)
end
function c50218505.filter(c)
return c:IsFaceup() and c:IsSetCard(0xcb5)
......@@ -60,11 +60,12 @@ function c50218505.efilter(e,re)
return e:GetHandler()~=re:GetOwner()
end
function c50218505.spcon(e,tp,eg,ep,ev,re,r,rp)
local loc=e:GetHandler():GetPreviousLocation()
return loc==LOCATION_HAND
local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_HAND)
end
function c50218505.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c50218505.spop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -72,7 +72,8 @@ function c50218510.spcon(e,tp,eg,ep,ev,re,r,rp)
return loc==LOCATION_HAND
end
function c50218510.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c50218510.spop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -54,7 +54,8 @@ function c50218515.spcon(e,tp,eg,ep,ev,re,r,rp)
return loc==LOCATION_HAND
end
function c50218515.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c50218515.spop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -56,7 +56,8 @@ function c50218520.spcon(e,tp,eg,ep,ev,re,r,rp)
return loc==LOCATION_HAND
end
function c50218520.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c50218520.spop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -56,7 +56,8 @@ function c50218525.spcon(e,tp,eg,ep,ev,re,r,rp)
return loc==LOCATION_HAND
end
function c50218525.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c50218525.spop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -78,7 +78,8 @@ function c50218530.spcon(e,tp,eg,ep,ev,re,r,rp)
return loc==LOCATION_HAND
end
function c50218530.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c50218530.spop(e,tp,eg,ep,ev,re,r,rp)
......
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