Commit c562bd1e authored by 伊蕾娜's avatar 伊蕾娜

c74560007.lua c74560008.lua c74560016.lua

parent 65ed9918
Pipeline #34817 passed with stage
in 14 seconds
......@@ -147,7 +147,7 @@ function cCardno.spop(e,tp,eg,ep,ev,re,r,rp)
local e8=Effect.CreateEffect(c)
e8:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_UNCOPYABLE)
e8:SetType(EFFECT_TYPE_SINGLE)
e8:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e8:SetCode(EFFECT_INDESTRUCTABLE)
e8:SetValue(1)
e8:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e8)
......
......@@ -42,14 +42,14 @@ function cCardno.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(tc,REASON_EFFECT)
Duel.Remove(tc,POS_FACEDOWN,REASON_EFFECT)
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
if tc:IsType(TYPE_TUNER) and Duel.SelectYesNo(tp,aux.Stringid(Cardno,2)) then
if c:IsType(TYPE_TUNER) and Duel.SelectYesNo(tp,aux.Stringid(Cardno,2)) then
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_REMOVE_TYPE)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetValue(TYPE_TUNER)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2)
c:RegisterEffect(e2)
end
end
end
......
......@@ -8,6 +8,7 @@ function cCardno.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(cCardno.tg)
e1:SetOperation(cCardno.activate)
c:RegisterEffect(e1)
--immune
......@@ -27,6 +28,13 @@ function cCardno.initial_effect(c)
e4:SetOperation(cCardno.activate2)
c:RegisterEffect(e4)
end
function cCardno.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
if Duel.GetMZoneCount(tp)>0 and Duel.GetMZoneCount(1-tp)>0 and Duel.IsPlayerCanSpecialSummonMonster(tp,74560012,0x456,0x4011,0,0,1,RACE_FAIRY,ATTRIBUTE_LIGHT) then
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,2,0,0)
end
end
--Activate
function cCardno.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
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