Commit cba17a4e authored by Nemo Ma's avatar Nemo Ma

fix

parent a592bfe6
--赤月礼赞·鹿沼叶子
local m=33701425
local m=33701426
local cm=_G["c"..m]
function cm.initial_effect(c)
--special summon
......
......@@ -96,7 +96,7 @@ function cm.tgcon1(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and Duel.GetAttackTarget()==nil
end
function cm.cfilter(c)
return c:IsSetCard(33701424) c:IsAbleToDeckAsCost()
return c:IsSetCard(33701424) and c:IsAbleToDeckAsCost()
end
function cm.tgcost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_GRAVE,0,1,nil) end
......
......@@ -70,7 +70,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local ct=1
if t1 then m[ct]=aux.Stringid(m,0) n[ct]=1 ct=ct+1 end
if t2 then m[ct]=aux.Stringid(m,1) n[ct]=2 ct=ct+1 end
m[ct]=aux.Stringid(m,2) n[ct]=3 ct=ct+1 end
m[ct]=aux.Stringid(m,2) n[ct]=3 ct=ct+1
local sp=Duel.SelectOption(tp,table.unpack(m))
op=n[sp+1]
end
......
......@@ -19,7 +19,7 @@ function cm.initial_effect(c)
e2:SetOperation(cm.recop)
c:RegisterEffect(e2)
end
function cm.reccop(e,tp,eg,ep,ev,re,r,rp)
function cm.reccon(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler()
return bit.band(r,REASON_BATTLE+REASON_EFFECT)~=0 and rc~=e:GetHandler() and (rc:IsCode(33701424) or rc:IsSetCard(9449))
end
......@@ -28,7 +28,7 @@ function cm.tgfilter(c)
end
function cm.recop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(cm.tgfilter,tp,LOCATION_HAND,0,e:GetHandler())
if g>0 and Duel.SelectYesNo(tp,aux.Stringid(m,0) then
if g>0 and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g1=g:Select(tp,1,1,nil)
Duel.SendtoGrave(g1,REASON_EFFECT)
......
......@@ -9,7 +9,6 @@ function cm.initial_effect(c)
e1:SetCode(EVENT_CHAINING)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e1:SetRange(LOCATION_SZONE)
e1:SetCondition(cm.discon)
e1:SetCost(cm.cost)
e1:SetTarget(cm.distg)
e1:SetOperation(cm.disop)
......@@ -44,7 +43,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.ConfirmCards(1-tp,g)
Duel.ShuffleHand(tp)
end
function cm.target1(e,tp,eg,ep,ev,re,r,rp,chk)
function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local ct=e:GetLabel()
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,tp,ct)
......@@ -53,7 +52,7 @@ function cm.target1(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,eg:GetCount(),0,0)
end
end
function cm.activate1(e,tp,eg,ep,ev,re,r,rp)
function cm.disop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
if not (tc and tc:IsRelateToEffect(e)) then return end
local ct=tc:GetDefense()
......@@ -66,7 +65,7 @@ function cm.activate1(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function cm.target2(e,tp,eg,ep,ev,re,r,rp,chk)
function cm.dstg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local ct=e:GetLabel()
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,tp,ct)
......@@ -80,7 +79,7 @@ end
function cm.filter(c)
return c:IsSetCard(0x9449) and c:IsFaceup()
end
function cm.activate2(e,tp,eg,ep,ev,re,r,rp)
function cm.dsop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
if not (tc and tc:IsRelateToEffect(e)) then return end
local ct=tc:GetDefense()
......
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