Commit df9c2048 authored by Tachibana's avatar Tachibana

ybb

parent 06dec903
......@@ -21,6 +21,7 @@ function c12003016.initial_effect(c)
e3:SetCode(EFFECT_IMMUNE_EFFECT)
e3:SetRange(LOCATION_MZONE)
e3:SetCondition(c12003016.incon1)
e3:SetTarget(c12003016.target)
e3:SetValue(c12003016.efilter)
c:RegisterEffect(e3)
local e1=Effect.CreateEffect(c)
......@@ -77,7 +78,7 @@ end
function c12003016.efilter(e,te)
local g,te=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS,CHAININFO_TRIGGERING_EFFECT)
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
function c12003016.cfilter(c,tp)
......
......@@ -47,7 +47,9 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then
Duel.HintSelection(g)
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)
local tg=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_REMOVED,LOCATION_REMOVED,1,1,nil)
if tg:GetCount()>0 then
......
......@@ -31,7 +31,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
end
function cm.filter(c)
return c:IsFaceup() and c:IsAbleToHand()
return c:IsAbleToHand()
end
function cm.thfilter(c)
return c:IsRace(RACE_SEASERPENT) and c:IsAbleToHand()
......
......@@ -84,7 +84,7 @@ function c12041001.tdop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e11:SetValue(c12041001.aclimit)
e1:SetValue(c12041001.aclimit)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(0,1)
e1:SetLabel(gc:GetCode())
......
......@@ -37,7 +37,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
end
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
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
......
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