Commit 3148a93b authored by Nemo Ma's avatar Nemo Ma

fix

parent 5bbeba1c
...@@ -101,7 +101,6 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -101,7 +101,6 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_BE_BATTLE_TARGET) e3:SetCode(EVENT_BE_BATTLE_TARGET)
e3:SetCountLimit(1)
e3:SetOperation(cm.atkop) e3:SetOperation(cm.atkop)
e3:SetReset(RESET_PHASE+PHASE_END) e3:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e3,tp) Duel.RegisterEffect(e3,tp)
...@@ -146,6 +145,7 @@ function cm.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -146,6 +145,7 @@ function cm.atkop(e,tp,eg,ep,ev,re,r,rp)
local d=Duel.GetAttackTarget() local d=Duel.GetAttackTarget()
if d and d:IsFacedown() or not d:IsSetCard(0x3536) then return end if d and d:IsFacedown() or not d:IsSetCard(0x3536) then return end
if not Duel.SelectYesNo(tp,aux.Stringid(m,1)) then return end if not Duel.SelectYesNo(tp,aux.Stringid(m,1)) then return end
e:Reset()
Duel.Hint(HINT_CARD,0,m) Duel.Hint(HINT_CARD,0,m)
if not Duel.NegateAttack() then return end if not Duel.NegateAttack() then return end
local tc=Duel.GetAttacker() local tc=Duel.GetAttacker()
......
...@@ -24,6 +24,12 @@ function c71402001.initial_effect(c) ...@@ -24,6 +24,12 @@ function c71402001.initial_effect(c)
e2:SetCost(c71402001.cost2) e2:SetCost(c71402001.cost2)
e2:SetOperation(c71402001.op2) e2:SetOperation(c71402001.op2)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--double tuner check
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_MATERIAL_CHECK)
e3:SetValue(c71402001.valcheck)
c:RegisterEffect(e3)
end end
function c71402001.mfilter(c,sc) function c71402001.mfilter(c,sc)
return c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:IsNotTuner(sc) or c:IsType(TYPE_TUNER) and c:IsSummonType(SUMMON_TYPE_NORMAL) return c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:IsNotTuner(sc) or c:IsType(TYPE_TUNER) and c:IsSummonType(SUMMON_TYPE_NORMAL)
...@@ -69,4 +75,15 @@ function c71402001.op2(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,4 +75,15 @@ function c71402001.op2(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(tc,POS_FACEDOWN,REASON_EFFECT) Duel.Remove(tc,POS_FACEDOWN,REASON_EFFECT)
end end
end end
end
function c71402001.valcheck(e,c)
local g=c:GetMaterial()
if g:IsExists(Card.IsType,2,nil,TYPE_TUNER) then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(21142671)
e1:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD+RESET_PHASE+PHASE_END)
c:RegisterEffect(e1)
end
end end
\ No newline at end of file
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