Commit c4bab603 authored by Tachibana's avatar Tachibana

ybb

parent e39c4e89
...@@ -59,5 +59,5 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,5 +59,5 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
c:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(m,3)) c:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(m,3))
end end
function cm.val3(e,re) function cm.val3(e,re)
return not re:GetOwner()==e:GetOwner() return re:GetOwner()~=e:GetOwner()
end end
\ No newline at end of file
...@@ -33,9 +33,10 @@ function cm.tg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -33,9 +33,10 @@ function cm.tg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_SZONE) and aux.NegateAnyFilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_SZONE) and aux.NegateAnyFilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(aux.NegateAnyFilter,tp,LOCATION_SZONE,LOCATION_SZONE,1,nil) if chk==0 then return Duel.IsExistingTarget(aux.NegateAnyFilter,tp,LOCATION_SZONE,LOCATION_SZONE,1,nil)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and c:GetFlagEffect(m)==0 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE)
local g=Duel.SelectTarget(tp,aux.NegateAnyFilter,tp,LOCATION_SZONE,LOCATION_SZONE,1,1,nil) local g=Duel.SelectTarget(tp,aux.NegateAnyFilter,tp,LOCATION_SZONE,LOCATION_SZONE,1,1,nil)
c:RegisterFlagEffect(m,RESET_CHAIN,0,1)
Duel.SetOperationInfo(0,CATEGORY_DISABLE,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DISABLE,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
......
...@@ -123,11 +123,11 @@ function c33200112.thtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -123,11 +123,11 @@ function c33200112.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,e:GetHandler(),1,0,0)
end end
function c33200112.thop(e,tp,eg,ep,ev,re,r,rp) function c33200112.thop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)==0 then return end if not e:GetHandler():IsRelateToEffect(e) or Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)==0 then return end
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
local dg=Duel.GetDecktopGroup(tp,1) local dg=Duel.GetDecktopGroup(tp,1)
local dgc=dg:GetFirst() local dgc=dg:GetFirst()
if e:GetHandler():IsRelateToEffect(e) and dgc:IsSetCard(0x324) then if dgc:IsSetCard(0x324) then
Duel.SendtoHand(e:GetHandler(),nil,REASON_EFFECT) Duel.SendtoHand(e:GetHandler(),nil,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -3,6 +3,7 @@ function c33200263.initial_effect(c) ...@@ -3,6 +3,7 @@ function c33200263.initial_effect(c)
--to hand --to hand
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(33200263,0)) e1:SetDescription(aux.Stringid(33200263,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCode(EVENT_SUMMON_SUCCESS)
......
...@@ -60,11 +60,8 @@ function c9310027.initial_effect(c) ...@@ -60,11 +60,8 @@ function c9310027.initial_effect(c)
e6:SetOperation(c9310027.scop) e6:SetOperation(c9310027.scop)
c:RegisterEffect(e6) c:RegisterEffect(e6)
end end
function c9310027.cfilter(c)
return not c:IsType(TYPE_TUNER)
end
function c9310027.condition(e,tp,eg,ep,ev,re,r,rp) function c9310027.condition(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(c9310027.cfilter,tp,LOCATION_MZONE,0,1,nil) return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==Duel.GetMatchingGroupCount(Card.IsType,tp,LOCATION_MZONE,0,nil,TYPE_TUNER)
end end
function c9310027.splimit(e,c,sump,sumtype,sumpos,targetp,se) function c9310027.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not (c:IsType(TYPE_TUNER) or (c:IsLocation(LOCATION_SZONE) and c:GetOriginalType(TYPE_TUNER))) return not (c:IsType(TYPE_TUNER) or (c:IsLocation(LOCATION_SZONE) and c:GetOriginalType(TYPE_TUNER)))
......
...@@ -56,8 +56,13 @@ function c9310057.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,8 +56,13 @@ function c9310057.spop(e,tp,eg,ep,ev,re,r,rp)
local tc=sg:Select(tp,1,1,nil):GetFirst() local tc=sg:Select(tp,1,1,nil):GetFirst()
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
end
if tc:IsPreviousLocation(LOCATION_DECK) then if tc:IsPreviousLocation(LOCATION_DECK) then
e:SetLabel(1)
else
e:SetLabel(0)
end
end
if e:GetLabel()==1 then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
......
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