Commit c7ba980f authored by Tachibana's avatar Tachibana

ndyd

parent 894d1252
......@@ -53,7 +53,7 @@ function cm.exfilter(c)
return c:IsSetCard(0xcfac) and not c:IsType(TYPE_FUSION) and c:IsFaceup()
end
function cm.imcon(e)
local e=e:GetHandlerPlayer()
local tp=e:GetHandlerPlayer()
return Duel.IsExistingMatchingCard(cm.exfilter,tp,LOCATION_MZONE,0,1,nil)
end
function cm.efilter(e,te)
......
......@@ -5,7 +5,7 @@ Duel.LoadScript("c12000000.lua")
function cm.initial_effect(c)
--link summon
c:EnableReviveLimit()
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0x6fa8),1,1)
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0xcfac),1,1)
--cannot link material
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......@@ -51,6 +51,7 @@ function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local rc=re:GetHandler()
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and rc:IsCanBeSpecialSummoned(e,0,tp,false,false) end
rc:CreateEffectRelation(e)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,rc,1,0,0)
end
function cm.desop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -95,7 +95,7 @@ function cm.ssop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,nil)>0 end
if chk==0 then return Duel.GetMatchingGroupCount(Card.IsAbleToDeck,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,nil)>0 end
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,1-tp,LOCATION_ONFIELD+LOCATION_GRAVE)
end
function cm.desop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -18,7 +18,9 @@ function Suyu_Cjz_ms.hnegate(c,code,acttype,actloc)
e1:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if ep==tp or c:IsStatus(STATUS_BATTLE_DESTROYED) then return false end
return re:IsActiveType(acttype) and Duel.IsChainNegatable(ev) and re:GetActivateLocation()==actloc
return re:IsActiveType(acttype) and Duel.IsChainNegatable(ev) and re:GetActivateLocation()==actloc and Duel.IsExistingMatchingCard(function(c)
return c:IsType(TYPE_RITUAL) and c:IsSetCard(0x8fb)
end,tp,LOCATION_DECK,0,1,nil)
end)
e1:SetTarget(function(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