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)
c:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(m,3))
end
function cm.val3(e,re)
return not re:GetOwner()==e:GetOwner()
return re:GetOwner()~=e:GetOwner()
end
\ No newline at end of file
......@@ -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 chk==0 then return Duel.IsExistingTarget(aux.NegateAnyFilter,tp,LOCATION_SZONE,LOCATION_SZONE,1,nil)
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)
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_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
......
......@@ -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)
end
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)
local dg=Duel.GetDecktopGroup(tp,1)
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)
end
end
\ No newline at end of file
......@@ -3,6 +3,7 @@ function c33200263.initial_effect(c)
--to hand
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(33200263,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e1:SetCode(EVENT_SUMMON_SUCCESS)
......
......@@ -60,11 +60,8 @@ function c9310027.initial_effect(c)
e6:SetOperation(c9310027.scop)
c:RegisterEffect(e6)
end
function c9310027.cfilter(c)
return not c:IsType(TYPE_TUNER)
end
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
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)))
......
......@@ -56,8 +56,13 @@ function c9310057.spop(e,tp,eg,ep,ev,re,r,rp)
local tc=sg:Select(tp,1,1,nil):GetFirst()
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)
if tc:IsPreviousLocation(LOCATION_DECK) then
e:SetLabel(1)
else
e:SetLabel(0)
end
end
if tc:IsPreviousLocation(LOCATION_DECK) then
if e:GetLabel()==1 then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
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