Commit 68013d8c authored by Tachibana's avatar Tachibana

ndyd

parent 3e24ac91
......@@ -98,7 +98,8 @@ function c21520085.damcon(e,tp,eg,ep,ev,re,r,rp)
return gc==dgc and gc>0
end
function c21520085.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAttribute,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,ATTRIBUTE_DARK) end
-- if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAttribute,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,ATTRIBUTE_DARK) end
if chk==0 then return true end
local dgc=Duel.GetMatchingGroupCount(Card.IsAttribute,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil,ATTRIBUTE_DARK)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,dgc*300)
end
......
......@@ -65,13 +65,13 @@ function c21520115.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c21520115.effectfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
end
function c21520115.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c21520115[tp]>=2
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
-- if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c21520115[tp]>=2 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c21520115.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then
if c:IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c21520115[tp]>=2 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)
c21520115[tp]=0
end
......
......@@ -33,7 +33,8 @@ function c21520119.dcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsReason(REASON_SUMMON) and c:GetReasonCard():IsSetCard(0x491)
end
function c21520119.dtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,2) end
-- if chk==0 then return Duel.IsPlayerCanDraw(tp,2) end
if chk==0 then return true end
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(2)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2)
......
......@@ -30,7 +30,8 @@ function c21520121.descon(e,tp,eg,ep,ev,re,r,rp)
end
function c21520121.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_ONFIELD) and chkc:IsDestructable() end
if chk==0 then return Duel.IsExistingTarget(Card.IsDestructable,tp,0,LOCATION_ONFIELD,1,nil) end
-- if chk==0 then return Duel.IsExistingTarget(Card.IsDestructable,tp,0,LOCATION_ONFIELD,1,nil) end
if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,Card.IsDestructable,tp,0,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
......
......@@ -53,7 +53,8 @@ function c21520131.spcon(e,c)
end
function c21520131.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsDestructable() end
if chk==0 then return Duel.IsExistingTarget(Card.IsDestructable,tp,0,LOCATION_MZONE,1,nil) end
-- if chk==0 then return Duel.IsExistingTarget(Card.IsDestructable,tp,0,LOCATION_MZONE,1,nil) end
if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,Card.IsDestructable,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
......
......@@ -123,11 +123,10 @@ function c21520172.thcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsReason(REASON_DESTROY)
end
function c21520172.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
if chkc then return e:GetHandler():GetMaterial():IsContains(chkc) and chkc:IsLocation(LOCATION_GRAVE) end
-- if chk==0 then return Duel.IsExistingTarget(c21520172.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
if chk==0 then
local g2=e:GetHandler():GetMaterial()
return g2:IsExists(c21520172.thfilter,1,nil,e:GetHandler()) end
-- if chk==0 then return e:GetHandler():GetMaterial():IsExists(c21520172.thfilter,1,nil,e:GetHandler()) end
if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g1=e:GetHandler():GetMaterial()
local g=g1:FilterSelect(tp,c21520172.thfilter,1,1,nil,e:GetHandler())
......
......@@ -114,8 +114,10 @@ function c21520173.sortcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsReason(REASON_DESTROY)
end
function c21520173.sorttg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>4 end
-- if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>4 end
if chk==0 then return true end
end
function c21520173.sortop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<5 then return end
Duel.SortDecktop(tp,tp,5)
end
......@@ -130,8 +130,8 @@ function c21520174.spcon(e,tp,eg,ep,ev,re,r,rp)
end
function c21520174.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c21520174.spfilter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c21520174.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
-- if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingTarget(c21520174.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
if chk==0 then return true end
local mg=Duel.GetMatchingGroup(c21520174.spfilter,tp,LOCATION_GRAVE,0,nil,e,tp)
local ct=math.min(3,Duel.GetMZoneCount(tp))
if Duel.IsPlayerAffectedByEffect(tp,59822133) and ct>1 then ct=1 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