Commit e72bd72a authored by wyykak's avatar wyykak

daimao fix

parent 4d9b689c
......@@ -85,22 +85,11 @@ function cCardno.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cCardno.spfilter,1,c) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cCardno.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return end
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,tp,e:GetHandler():GetLocation())
end
function cCardno.spop(e,tp,eg,ep,ev,re,r,rp,c)
local c=e:GetHandler()
local e9=Effect.CreateEffect(c)
e9:SetType(EFFECT_TYPE_FIELD)
e9:SetCode(EFFECT_CANNOT_TO_DECK)
e9:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_SET_AVAILABLE)
e9:SetTargetRange(LOCATION_ONFIELD+LOCATION_GRAVE,0)
e9:SetReset(RESET_PHASE+PHASE_END)
--Duel.RegisterEffect(e9,tp)
local e10=e9:Clone()
e10:SetCode(EFFECT_CANNOT_TO_HAND)
--Duel.RegisterEffect(e10,tp)
if c:IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and (c:IsLocation(LOCATION_GRAVE) or c:IsLocation(LOCATION_HAND)) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
......
......@@ -9,6 +9,13 @@ function c74561022.initial_effect(c)
c:EnableReviveLimit()
DS.AddDarkSynchroProcedure(c,aux.FilterBoolFunction(Card.IsCode,74561020),nil,nil)
DS.DarkSynTunerLimit(c)
--synchro limit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetValue(cCardno.synlimitMReimu)
c:RegisterEffect(e1)
--专 用 对 策
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(Cardno,0))
......@@ -196,6 +203,10 @@ function cCardno.synfilter(c)
return c:IsSetCard(0x226) and c:IsSetCard(0x149)
end
function cCardno.synlimit(e,c)
if not c then return false end
return not c:IsSetCard(0x5208)
end
function cCardno.synlimitMReimu(e,c)
if not c then return false end
return not c:IsSetCard(0x5208) or c:IsCode(30001)
end
\ No newline at end of file
......@@ -98,6 +98,7 @@ function cCardno.desop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(1000)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_UPDATE_DEFENSE)
......@@ -129,6 +130,7 @@ function cCardno.ngop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(1000)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_UPDATE_DEFENSE)
......
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