Commit d57679e6 authored by Tachibana's avatar Tachibana

tnndx

parent 828823da
...@@ -70,7 +70,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,7 +70,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local ct=1 local ct=1
if t1 then m[ct]=aux.Stringid(m,0) n[ct]=1 ct=ct+1 end 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 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)) local sp=Duel.SelectOption(tp,table.unpack(m))
op=n[sp+1] op=n[sp+1]
end end
...@@ -80,6 +80,5 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -80,6 +80,5 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
elseif op==2 then elseif op==2 then
Duel.SendtoGrave(tc,REASON_EFFECT) Duel.SendtoGrave(tc,REASON_EFFECT)
end end
end
end end
end end
...@@ -19,7 +19,7 @@ function cm.initial_effect(c) ...@@ -19,7 +19,7 @@ function cm.initial_effect(c)
e2:SetOperation(cm.recop) e2:SetOperation(cm.recop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end 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() 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)) return bit.band(r,REASON_BATTLE+REASON_EFFECT)~=0 and rc~=e:GetHandler() and (rc:IsCode(33701424) or rc:IsSetCard(9449))
end end
......
...@@ -9,7 +9,6 @@ function cm.initial_effect(c) ...@@ -9,7 +9,6 @@ function cm.initial_effect(c)
e1:SetCode(EVENT_CHAINING) e1:SetCode(EVENT_CHAINING)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e1:SetRange(LOCATION_SZONE) e1:SetRange(LOCATION_SZONE)
e1:SetCondition(cm.discon)
e1:SetCost(cm.cost) e1:SetCost(cm.cost)
e1:SetTarget(cm.distg) e1:SetTarget(cm.distg)
e1:SetOperation(cm.disop) e1:SetOperation(cm.disop)
...@@ -44,7 +43,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -44,7 +43,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
Duel.ShuffleHand(tp) Duel.ShuffleHand(tp)
end 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 if chk==0 then return true end
local ct=e:GetLabel() local ct=e:GetLabel()
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,tp,ct) 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) ...@@ -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) Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,eg:GetCount(),0,0)
end end
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() local tc=e:GetLabelObject()
if not (tc and tc:IsRelateToEffect(e)) then return end if not (tc and tc:IsRelateToEffect(e)) then return end
local ct=tc:GetDefense() local ct=tc:GetDefense()
...@@ -66,7 +65,7 @@ function cm.activate1(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,7 +65,7 @@ function cm.activate1(e,tp,eg,ep,ev,re,r,rp)
end end
end 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 if chk==0 then return true end
local ct=e:GetLabel() local ct=e:GetLabel()
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,tp,ct) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,tp,ct)
...@@ -80,7 +79,7 @@ end ...@@ -80,7 +79,7 @@ end
function cm.filter(c) function cm.filter(c)
return c:IsSetCard(0x9449) and c:IsFaceup() return c:IsSetCard(0x9449) and c:IsFaceup()
end 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() local tc=e:GetLabelObject()
if not (tc and tc:IsRelateToEffect(e)) then return end if not (tc and tc:IsRelateToEffect(e)) then return end
local ct=tc:GetDefense() 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