Commit de31666c authored by Tachibana's avatar Tachibana

nmbd

parent 1185860e
...@@ -49,8 +49,8 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -49,8 +49,8 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
e2:SetCode(EFFECT_PUBLIC) e2:SetCode(EFFECT_PUBLIC)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
tc=g:GetNext()
tc:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD,0,1) tc:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD,0,1)
tc=g:GetNext()
end end
local ex=Effect.CreateEffect(e:GetHandler()) local ex=Effect.CreateEffect(e:GetHandler())
ex:SetType(EFFECT_TYPE_FIELD) ex:SetType(EFFECT_TYPE_FIELD)
...@@ -84,13 +84,14 @@ function cm.negcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,13 +84,14 @@ function cm.negcon(e,tp,eg,ep,ev,re,r,rp)
if c:IsStatus(STATUS_BATTLE_DESTROYED) then return false end if c:IsStatus(STATUS_BATTLE_DESTROYED) then return false end
return true return true
end end
function filter(c,code) function filter(c,rc)
return c:IsAbleToHand() and c:IsCode(code) and not re:GetHandler():IsCode(table.unpack(Srprzm_setback)) return c:IsAbleToHand() and c:IsCode(rc:GetCode()) and not re:GetHandler():IsCode(table.unpack(Srprzm_setback))
end end
function cm.negtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
local rc=re:GetHandler() local rc=re:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,LOCATION_GRAVE+LOCATION_REMOVED,1,rc,rc:GetCode()) end if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,LOCATION_GRAVE+LOCATION_REMOVED,1,rc,rc) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,0)
Srprzm_setback[#Srprzm_setback+1]=rc:GetCode()
end end
function cm.negop(e,tp,eg,ep,ev,re,r,rp) function cm.negop(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler() local rc=re:GetHandler()
......
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