Commit f5949006 authored by TanakaKotoha's avatar TanakaKotoha

tnndx

parent 22f46b02
...@@ -52,14 +52,14 @@ function cm.con2(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,14 +52,14 @@ function cm.con2(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnCount()>2 return Duel.GetTurnCount()>2
end end
function cm.con1(e,tp,eg,ep,ev,re,r,rp) function cm.con1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.GetTurnCount()>2 return Duel.GetTurnCount()<=2
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsDiscardable() end if chk==0 then return e:GetHandler():IsDiscardable() end
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD) Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
end end
function cm.sumfilter(c) function cm.sumfilter(c)
return c:IsRace(RACE_PLANT) and c:IsLevelAbove(5) and c:IsSummonable(true,nil) return c:IsRace(RACE_PLANT) and c:IsSummonable(true,nil)
end end
function cm.thfilter(c) function cm.thfilter(c)
return c:IsSetCard(0xafac) and c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsSetCard(0xafac) and c:IsType(TYPE_SPELL+TYPE_TRAP)
...@@ -69,7 +69,6 @@ function cm.sumtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -69,7 +69,6 @@ function cm.sumtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SUMMON,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SUMMON,nil,1,0,0)
end end
function cm.sumop(e,tp,eg,ep,ev,re,r,rp) function cm.sumop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SUMMON)
local g=Duel.SelectMatchingCard(tp,cm.sumfilter,tp,LOCATION_HAND,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,cm.sumfilter,tp,LOCATION_HAND,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
......
...@@ -68,10 +68,8 @@ function cm.target1(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -68,10 +68,8 @@ function cm.target1(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function cm.operation(e,tp,eg,ep,ev,re,r,rp) function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if true then
Duel.Recover(tp,500,REASON_EFFECT)
end
if e:GetHandler():GetFlagEffect(m)==0 or not e:GetHandler():IsRelateToEffect(e) then return end if e:GetHandler():GetFlagEffect(m)==0 or not e:GetHandler():IsRelateToEffect(e) then return end
Duel.Recover(tp,500,REASON_EFFECT)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
......
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