Commit d304e13e authored by Tachibana's avatar Tachibana

ndyd

parent 5851dcd4
......@@ -26,6 +26,7 @@ function cm.initial_effect(c)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCondition(cm.thcondition)
e2:SetCost(cm.effcost)
e2:SetTarget(cm.sumtg)
e2:SetOperation(cm.sumop)
......@@ -68,7 +69,7 @@ end
function cm.chainlm(e,ep,tp)
return tp==ep
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
function cm.thcondition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
end
function cm.thfilter(c)
......
......@@ -131,7 +131,7 @@ function c45745902.eqcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp
end
function c45745902.thfilter(c)
return c:IsType(TYPE_SPELL,TYPE_TRAP) and c:IsSetCard(0x881) and c:IsAbleToHand()
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSetCard(0x881) and c:IsAbleToHand()
end
function c45745902.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c45745902.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
......
......@@ -86,7 +86,7 @@ function c45745911.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c45745911.filter(c,e,tp)
return c:IsSetCard(0x881) and c:IsType(TYPE_SYNCHRO) and IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) and not c:IsCode(45745911)
return (c:IsSetCard(0x881) and c:IsType(TYPE_SYNCHRO)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) and not c:IsCode(45745911)
end
function c45745911.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
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