Commit df9c2048 authored by Tachibana's avatar Tachibana

ybb

parent 06dec903
...@@ -21,6 +21,7 @@ function c12003016.initial_effect(c) ...@@ -21,6 +21,7 @@ function c12003016.initial_effect(c)
e3:SetCode(EFFECT_IMMUNE_EFFECT) e3:SetCode(EFFECT_IMMUNE_EFFECT)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCondition(c12003016.incon1) e3:SetCondition(c12003016.incon1)
e3:SetTarget(c12003016.target)
e3:SetValue(c12003016.efilter) e3:SetValue(c12003016.efilter)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -77,7 +78,7 @@ end ...@@ -77,7 +78,7 @@ end
function c12003016.efilter(e,te) function c12003016.efilter(e,te)
local g,te=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS,CHAININFO_TRIGGERING_EFFECT) local g,te=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS,CHAININFO_TRIGGERING_EFFECT)
return ( not (te and te:IsHasProperty(EFFECT_FLAG_CARD_TARGET)) return ( not (te and te:IsHasProperty(EFFECT_FLAG_CARD_TARGET))
or not (g and g:IsContains(c)) ) and te:GetOwnerPlayer()~=e:GetHandlerPlayer() or not (g and g:IsContains(e:GetHandler())) ) and te:GetOwnerPlayer()~=e:GetHandlerPlayer()
end end
function c12003016.cfilter(c,tp) function c12003016.cfilter(c,tp)
......
...@@ -47,7 +47,9 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,7 +47,9 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.HintSelection(g) Duel.HintSelection(g)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
if not Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_MZONE,0,1,nil,12040012) and not Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_REMOVED,LOCATION_REMOVED,1,nil) and not Duel.SelectYesNo(tp,aux.Stringid(m,2)) then return end if not Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_MZONE,0,1,nil,12040012) then return end
if not Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_REMOVED,LOCATION_REMOVED,1,nil) then return end
if not Duel.SelectYesNo(tp,aux.Stringid(m,2)) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local tg=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_REMOVED,LOCATION_REMOVED,1,1,nil) local tg=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_REMOVED,LOCATION_REMOVED,1,1,nil)
if tg:GetCount()>0 then if tg:GetCount()>0 then
......
...@@ -31,7 +31,7 @@ function cm.initial_effect(c) ...@@ -31,7 +31,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function cm.filter(c) function cm.filter(c)
return c:IsFaceup() and c:IsAbleToHand() return c:IsAbleToHand()
end end
function cm.thfilter(c) function cm.thfilter(c)
return c:IsRace(RACE_SEASERPENT) and c:IsAbleToHand() return c:IsRace(RACE_SEASERPENT) and c:IsAbleToHand()
......
...@@ -84,7 +84,7 @@ function c12041001.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,7 +84,7 @@ function c12041001.tdop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_ACTIVATE) e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e11:SetValue(c12041001.aclimit) e1:SetValue(c12041001.aclimit)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(0,1) e1:SetTargetRange(0,1)
e1:SetLabel(gc:GetCode()) e1:SetLabel(gc:GetCode())
......
...@@ -37,7 +37,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -37,7 +37,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD) Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
end end
function cm.filter(c) function cm.filter(c)
return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsCode(12068001) and c:IsAbleToHand() return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsRace(RACE_SEASERPENT) and c:IsAbleToHand()
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) 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