Commit 477fa218 authored by TanakaKotoha's avatar TanakaKotoha

daniaozhuanzhuanzhuan

parent dc959575
...@@ -58,7 +58,7 @@ function cm.initial_effect(c) ...@@ -58,7 +58,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function cm.splimit(e,se,sp,st) function cm.splimit(e,se,sp,st)
local ec=sc:GetHandler() local sc=se:GetHandler()
return sc and sc:IsRace(RACE_DRAGON) return sc and sc:IsRace(RACE_DRAGON)
end end
function cm.thfilter(c,tg) function cm.thfilter(c,tg)
...@@ -84,4 +84,26 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -84,4 +84,26 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.SelectReleaseGroup(tp,cm.spfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(tp,cm.spfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end
function cm.disfilter(c)
return c:IsDiscardable(REASON_COST) and c:IsType(TYPE_TUNER) and c:IsLevel(1)
end
function cm.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.disfilter,tp,LOCATION_HAND,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,cm.disfilter,tp,LOCATION_HAND,0,1,1,nil)
Duel.SendtoGrave(g,REASON_COST+REASON_DISCARD)
end
function cm.destg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) end
if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end
function cm.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT)
end
end end
\ No newline at end of file
...@@ -89,8 +89,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -89,8 +89,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoHand(c,nil,REASON_COST) Duel.SendtoHand(c,nil,REASON_COST)
end end
function cm.thtg1(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thtg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function cm.thop1(e,tp,eg,ep,ev,re,r,rp) function cm.thop1(e,tp,eg,ep,ev,re,r,rp)
local e2=Effect.CreateEffect(e:GetHandler()) local e2=Effect.CreateEffect(e:GetHandler())
......
...@@ -41,7 +41,7 @@ function cm.initial_effect(c) ...@@ -41,7 +41,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function cm.splimit(e,se,sp,st) function cm.splimit(e,se,sp,st)
local ec=sc:GetHandler() local sc=se:GetHandler()
return sc and sc:IsRace(RACE_DRAGON) return sc and sc:IsRace(RACE_DRAGON)
end end
function cm.filter(c,tp) function cm.filter(c,tp)
......
...@@ -42,7 +42,7 @@ function cm.initial_effect(c) ...@@ -42,7 +42,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function cm.splimit(e,se,sp,st) function cm.splimit(e,se,sp,st)
local ec=sc:GetHandler() local sc=se:GetHandler()
return sc and sc:IsRace(RACE_DRAGON) return sc and sc:IsRace(RACE_DRAGON)
end end
function cm.spcon1(e,tp,eg,ep,ev,re,r,rp) function cm.spcon1(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -89,8 +89,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -89,8 +89,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoHand(c,nil,REASON_COST) Duel.SendtoHand(c,nil,REASON_COST)
end end
function cm.thtg1(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thtg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function cm.thop1(e,tp,eg,ep,ev,re,r,rp) function cm.thop1(e,tp,eg,ep,ev,re,r,rp)
--damage conversion --damage conversion
......
...@@ -39,7 +39,7 @@ function cm.initial_effect(c) ...@@ -39,7 +39,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function cm.splimit(e,se,sp,st) function cm.splimit(e,se,sp,st)
local ec=sc:GetHandler() local sc=se:GetHandler()
return sc and sc:IsRace(RACE_DRAGON) return sc and sc:IsRace(RACE_DRAGON)
end end
function cm.spcon1(e,tp,eg,ep,ev,re,r,rp) function cm.spcon1(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -90,8 +90,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -90,8 +90,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoHand(c,nil,REASON_COST) Duel.SendtoHand(c,nil,REASON_COST)
end end
function cm.thtg1(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thtg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function cm.thop1(e,tp,eg,ep,ev,re,r,rp) function cm.thop1(e,tp,eg,ep,ev,re,r,rp)
local e2=Effect.CreateEffect(e:GetHandler()) local e2=Effect.CreateEffect(e:GetHandler())
......
...@@ -44,7 +44,7 @@ function cm.initial_effect(c) ...@@ -44,7 +44,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function cm.splimit(e,se,sp,st) function cm.splimit(e,se,sp,st)
local ec=sc:GetHandler() local sc=se:GetHandler()
return sc and sc:IsRace(RACE_DRAGON) return sc and sc:IsRace(RACE_DRAGON)
end end
function cm.actcon(e,tp,eg,ep,ev,re,r,rp) function cm.actcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -55,7 +55,7 @@ function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -55,7 +55,7 @@ function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(c,REASON_COST+REASON_DISCARD) Duel.SendtoGrave(c,REASON_COST+REASON_DISCARD)
end end
function cm.thfilter(c) function cm.thfilter(c)
return c:IsRace(RACE_DRAGON) and c:IsLevel(1) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsAbleToHand() return c:IsRace(RACE_DRAGON) and c:IsLevel(1) and c:IsAttribute(ATTRIBUTE_FIRE) and c:IsAbleToHand()
end end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) end
...@@ -69,7 +69,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -69,7 +69,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function cm.filter(c,e,tp) function cm.filter(c,e,tp)
return c:IsRace(RACE_DRAGON) and c:IsLevel(1) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_DRAGON) and c:IsLevel(1) and c:IsAttribute(ATTRIBUTE_FIRE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function cm.sptarget(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptarget(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.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -47,7 +47,7 @@ function cm.contcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,7 +47,7 @@ function cm.contcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)<Duel.GetFieldGroupCount(tp,LOCATION_HAND,0) return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)<Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)
end end
function cm.splimit(e,se,sp,st) function cm.splimit(e,se,sp,st)
local ec=sc:GetHandler() local sc=se:GetHandler()
return sc and sc:IsRace(RACE_DRAGON) return sc and sc:IsRace(RACE_DRAGON)
end end
function cm.actcon(e,tp,eg,ep,ev,re,r,rp) function cm.actcon(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