Commit cb9a1807 authored by Tachibana's avatar Tachibana

nmbd

parent b94ad0c8
...@@ -67,11 +67,12 @@ function cm.sfilter(c) ...@@ -67,11 +67,12 @@ function cm.sfilter(c)
return c:IsRace(RACE_ZOMBIE) and (c:IsLocation(LOCATION_HAND) or c:IsFaceup()) return c:IsRace(RACE_ZOMBIE) and (c:IsLocation(LOCATION_HAND) or c:IsFaceup())
end end
function cm.disop(e,tp,eg,ep,ev,re,r,rp) function cm.disop(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) and re:GetHandler():IsAbleToHand() then if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
local g=Duel.GetFieldGroup(tp,LOCATION_HAND,0) local g=Duel.GetFieldGroup(tp,LOCATION_HAND,0)
local g1=Duel.GetFieldGroup(1-tp,LOCATION_HAND,0) local g1=Duel.GetFieldGroup(1-tp,LOCATION_HAND,0)
local rc=re:GetHandler() local rc=re:GetHandler()
if rc:IsType(TYPE_SPELL+TYPE_TRAP) then rc:CancelToGrave() end if not re:IsActiveType(TYPE_MONSTER) then rc:CancelToGrave()
if not rc:IsAbleToHand() then Duel.SendtoGrave(rc,REASON_RULE) end end
if Duel.SendtoHand(eg,tp,REASON_EFFECT)==0 then return end if Duel.SendtoHand(eg,tp,REASON_EFFECT)==0 then return end
local og=Duel.GetOperatedGroup() local og=Duel.GetOperatedGroup()
local tc=og:GetFirst() local tc=og:GetFirst()
......
...@@ -8,8 +8,8 @@ function cm.initial_effect(c) ...@@ -8,8 +8,8 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,m+EFFECT_COUNT_CODE_OATH) e1:SetCountLimit(1,m+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(cm.atarget) e1:SetTarget(cm.sptg1)
e1:SetOperation(cm.aop) e1:SetOperation(cm.spop1)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function cm.spfilter1(c,e,tp) function cm.spfilter1(c,e,tp)
...@@ -80,4 +80,4 @@ end ...@@ -80,4 +80,4 @@ end
function cm.crtg1(e,c) function cm.crtg1(e,c)
local race=e:GetLabel() local race=e:GetLabel()
return c:IsRace(race) return c:IsRace(race)
end end
\ No newline at end of file \ No newline at end of file
...@@ -5,7 +5,7 @@ Duel.LoadScript("c81000000.lua") ...@@ -5,7 +5,7 @@ Duel.LoadScript("c81000000.lua")
function cm.initial_effect(c) function cm.initial_effect(c)
--special summon --special summon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,m+EFFECT_COUNT_CODE_OATH) e1:SetCountLimit(1,m+EFFECT_COUNT_CODE_OATH)
......
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