Commit e6b585fa authored by Tachibana's avatar Tachibana

ndyd

parent 59d0d71f
......@@ -13,7 +13,7 @@ function cm.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCountLimit(1)
e1:SetCondition(cm.condition)
e1:SetCondition(cm.thcondition)
e1:SetTarget(cm.thtg)
e1:SetOperation(cm.thop)
c:RegisterEffect(e1)
......@@ -26,7 +26,6 @@ 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)
......
......@@ -7,7 +7,7 @@ function c45745916.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(45745916,0))
e1:SetCategory(CATEGORY_HANDES)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_0)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCountLimit(1,45745916)
......
......@@ -93,10 +93,13 @@ function c45746839.etlimit(e,c)
return (c:IsFaceup() and e:GetHandler():GetLinkedGroup():IsContains(c))
end
--e5
function c45746839.cfilter(c)
return c:IsLocation(LOCATION_HAND) and c:IsType(TYPE_MONSTER)
end
function c45746839.negcon(e,tp,eg,ep,ev,re,r,rp)
local ex,g,gc,dp,dv=Duel.GetOperationInfo(ev,CATEGORY_SPECIAL_SUMMON)
return Duel.IsChainNegatable(ev) and rp==1-tp
and (ex and (dv&LOCATION_HAND==LOCATION_HAND or g and g:IsExists(c45746839.cfilter,1,nil)) or re:IsHasCategory(CATEGORY_HAND_SPSUMMON))
and ex and (dv&LOCATION_HAND==LOCATION_HAND or g and g:IsExists(c45746839.cfilter,1,nil))
end
function c45746839.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
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