Commit d8045d41 authored by TanakaKotoha's avatar TanakaKotoha

ladies and xiangqinmen

parent a459da48
...@@ -18,6 +18,7 @@ function cm.initial_effect(c) ...@@ -18,6 +18,7 @@ function cm.initial_effect(c)
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_HAND) e2:SetRange(LOCATION_HAND)
e2:SetCountLimit(1,m)
e2:SetCost(cm.cost) e2:SetCost(cm.cost)
e2:SetTarget(cm.target) e2:SetTarget(cm.target)
e2:SetOperation(cm.operation) e2:SetOperation(cm.operation)
......
...@@ -56,16 +56,16 @@ function c65050250.pop(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,16 +56,16 @@ function c65050250.pop(e,tp,eg,ep,ev,re,r,rp)
e3:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,0) e3:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,0)
e3:SetTarget(c65050250.poptg) e3:SetTarget(c65050250.poptg)
e3:SetReset(RESET_PHASE+PHASE_END) e3:SetReset(RESET_PHASE+PHASE_END)
tc:RegisterEffect(e3) Duel.RegisterEffect(e3,tp)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_LSCALE) e1:SetCode(EFFECT_CHANGE_LSCALE)
e1:SetValue(3) e1:SetValue(3)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
c:RegisterEffect(e1) Duel.RegisterEffect(e1,tp)
local e2=e1:Clone() local e2=e1:Clone()
e2:SetCode(EFFECT_CHANGE_RSCALE) e2:SetCode(EFFECT_CHANGE_RSCALE)
c:RegisterEffect(e2) Duel.RegisterEffect(e2,tp)
end end
function c65050250.poptg(e,c) function c65050250.poptg(e,c)
return c:IsSetCard(0x9da9) or c:IsSetCard(0x5da9) return c:IsSetCard(0x9da9) or c:IsSetCard(0x5da9)
......
...@@ -74,15 +74,13 @@ function c65072005.tffilter(c,tp) ...@@ -74,15 +74,13 @@ function c65072005.tffilter(c,tp)
return aux.IsCodeListed(c,65072000) and not c:IsForbidden() and c:IsType(TYPE_FIELD) return aux.IsCodeListed(c,65072000) and not c:IsForbidden() and c:IsType(TYPE_FIELD)
end end
function c65072005.tftg(e,tp,eg,ep,ev,re,r,rp,chk) function c65072005.tftg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 if chk==0 then return Duel.IsExistingMatchingCard(c65072005.tffilter,tp,LOCATION_DECK,0,1,nil,tp) end
and Duel.IsExistingMatchingCard(c65072005.tffilter,tp,LOCATION_DECK,0,1,nil,tp) end
end end
function c65072005.tfop(e,tp,eg,ep,ev,re,r,rp) function c65072005.tfop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local tc=Duel.SelectMatchingCard(tp,c65072005.tffilter,tp,LOCATION_DECK,0,1,1,nil,tp):GetFirst() local tc=Duel.SelectMatchingCard(tp,c65072005.tffilter,tp,LOCATION_DECK,0,1,1,nil,tp):GetFirst()
if tc then if tc then
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(tc,tp,tp,LOCATION_FZONE,POS_FACEUP,true)
Duel.Hint(11,0,aux.Stringid(tc:GetCode(),0)) Duel.Hint(HINT_MUSIC,0,aux.Stringid(tc:GetCode(),0))
end end
end 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