Commit b18d439a authored by Tachibana's avatar Tachibana

ndyd

parent a83ecc8d
...@@ -84,7 +84,7 @@ function cm.negcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,7 +84,7 @@ 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,rc) function cm.filter(c,rc)
return c:IsAbleToHand() and c:IsCode(rc:GetCode()) 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)
...@@ -95,10 +95,10 @@ function cm.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -95,10 +95,10 @@ function cm.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
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()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,LOCATION_GRAVE+LOCATION_REMOVED,1,1,rc,rc:GetCode()) local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,LOCATION_GRAVE+LOCATION_REMOVED,1,1,rc,rc)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,tp,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
\ No newline at end of file
...@@ -15,11 +15,11 @@ function cm.initial_effect(c) ...@@ -15,11 +15,11 @@ function cm.initial_effect(c)
e2:SetCode(EFFECT_CANNOT_RELEASE) e2:SetCode(EFFECT_CANNOT_RELEASE)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetTargetRange(0,1) e2:SetTargetRange(0,1)
e2:SetValue(cm.tg0) e2:SetTarget(cm.tg0)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e11=e2:Clone() local e11=e2:Clone()
e11:SetTargetRange(1,0) e11:SetTargetRange(1,0)
e11:SetValue(cm.tg1) e11:SetTarget(cm.tg1)
c:RegisterEffect(e11) c:RegisterEffect(e11)
-- --
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
......
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