Commit 40c6c3b9 authored by nanahira's avatar nanahira

fixes

parent a29368bf
......@@ -153,8 +153,9 @@ function c13254062.penop(e,tp,eg,ep,ev,re,r,rp)
local sg=g:Filter(Card.IsRelateToEffect,nil,e)
if Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)~=1 then return end
Duel.BreakEffect()
if not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return false end
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
if not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return false end
Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
end
function c13254062.tgfilter(c)
......
......@@ -158,8 +158,9 @@ function c13254063.penop(e,tp,eg,ep,ev,re,r,rp)
local sg=g:Filter(Card.IsRelateToEffect,nil,e)
if Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)~=1 then return end
Duel.BreakEffect()
if not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return false end
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
if not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return false end
Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
end
function c13254063.destg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
......@@ -157,8 +157,9 @@ function c13254064.penop(e,tp,eg,ep,ev,re,r,rp)
local sg=g:Filter(Card.IsRelateToEffect,nil,e)
if Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)~=1 then return end
Duel.BreakEffect()
if not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return false end
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
if not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return false end
Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
end
function c13254064.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
......@@ -150,8 +150,9 @@ function c13254065.penop(e,tp,eg,ep,ev,re,r,rp)
local sg=g:Filter(Card.IsRelateToEffect,nil,e)
if Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)~=1 then return end
Duel.BreakEffect()
if not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return false end
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
if not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return false end
Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
end
function c13254065.sgtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -153,8 +153,9 @@ function c13254067.penop(e,tp,eg,ep,ev,re,r,rp)
local sg=g:Filter(Card.IsRelateToEffect,nil,e)
if Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)~=1 then return end
Duel.BreakEffect()
if not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return false end
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
if not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return false end
Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
end
function c13254067.operation3(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -145,8 +145,9 @@ function c13254069.penop(e,tp,eg,ep,ev,re,r,rp)
local sg=g:Filter(Card.IsRelateToEffect,nil,e)
if Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)~=1 then return end
Duel.BreakEffect()
if not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return false end
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
if not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return false end
Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
end
function c13254069.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -151,8 +151,9 @@ function c13254073.penop(e,tp,eg,ep,ev,re,r,rp)
local sg=g:Filter(Card.IsRelateToEffect,nil,e)
if Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)~=1 then return end
Duel.BreakEffect()
if not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return false end
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
if not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return false end
Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
--Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(13254073,4))
--local sel=Duel.SelectOption(tp,70,71,72)
......
......@@ -145,8 +145,9 @@ function c13254074.penop(e,tp,eg,ep,ev,re,r,rp)
local sg=g:Filter(Card.IsRelateToEffect,nil,e)
if Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)~=2 then return end
Duel.BreakEffect()
if not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return false end
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
if not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return false end
Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
end
function c13254074.drtg2(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -8,8 +8,8 @@ function c13255229.initial_effect(c)
e1:SetRange(LOCATION_MZONE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCountLimit(1)
e1:SetTarget(c13255229.thtg)
e1:SetOperation(c13255229.thop)
e1:SetTarget(c13255229.thtg1)
e1:SetOperation(c13255229.thop1)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(13255229,0))
......@@ -17,8 +17,8 @@ function c13255229.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetTarget(c13255229.thtg1)
e2:SetOperation(c13255229.thop1)
e2:SetTarget(c13255229.thtg)
e2:SetOperation(c13255229.thop)
c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(13255229,1))
......
......@@ -34,7 +34,7 @@ function c65010091.initial_effect(c)
--counter
local e4=Effect.CreateEffect(c)
e4:SetCategory(CATEGORY_DISABLE_SUMMON)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e4:SetType(EFFECT_TYPE_QUICK_O)
e4:SetCode(EVENT_SPSUMMON)
e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1,65010091)
......@@ -65,7 +65,7 @@ function c65010091.discon(e,tp,eg,ep,ev,re,r,rp)
return tp~=ep and Duel.GetCurrentChain()==0 and e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end
function c65010091.costfil(c)
return c:IsSetCard(0x9da0) and c:IsAbleToHandAsCost()
return c:IsSetCard(0x9da0) and c:IsAbleToHandAsCost() and c:IsType(TYPE_MONSTER)
end
function c65010091.discost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c65010091.costfil,tp,LOCATION_MZONE,0,1,nil) end
......
......@@ -7,9 +7,9 @@ function c65010124.initial_effect(c)
c:RegisterEffect(e1)
--indes
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetRange(LOCATION_FZONE)
e2:SetTargetRange(LOCATION_ONFIELD,0)
e2:SetTarget(c65010124.notgtg)
......
......@@ -17,13 +17,13 @@ function c65020011.initial_effect(c)
e2:SetOperation(c65020011.op)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetProperty(EFFECT_TYPE_QUICK_O)
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_CHAINING)
e3:SetCondition(c65020011.ccon)
c:RegisterEffect(e3)
end
function c65020011.ccon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp and re:GetHandlerPlayer()~=tp
return Duel.GetTurnPlayer()~=tp and ep~=tp
end
function c65020011.tg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -17,13 +17,13 @@ function c65020012.initial_effect(c)
e2:SetOperation(c65020012.op)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetProperty(EFFECT_TYPE_QUICK_O)
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_CHAINING)
e3:SetCondition(c65020012.ccon)
c:RegisterEffect(e3)
end
function c65020012.ccon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp and re:GetHandlerPlayer()~=tp
return Duel.GetTurnPlayer()~=tp and ep~=tp
end
function c65020012.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingTarget(Card.IsFacedown,tp,LOCATION_SZONE,0,1,nil) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
......
......@@ -17,13 +17,13 @@ function c65020013.initial_effect(c)
e2:SetOperation(c65020013.op)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetProperty(EFFECT_TYPE_QUICK_O)
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_CHAINING)
e3:SetCondition(c65020013.ccon)
c:RegisterEffect(e3)
end
function c65020013.ccon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp and re:GetHandlerPlayer()~=tp
return Duel.GetTurnPlayer()~=tp and ep~=tp
end
function c65020013.tg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -17,13 +17,13 @@ function c65020026.initial_effect(c)
e2:SetOperation(c65020026.op)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetProperty(EFFECT_TYPE_QUICK_O)
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_CHAINING)
e3:SetCondition(c65020026.ccon)
c:RegisterEffect(e3)
end
function c65020026.ccon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp and re:GetHandlerPlayer()~=tp
return Duel.GetTurnPlayer()~=tp and ep~=tp
end
function c65020026.tg(e,tp,eg,ep,ev,re,r,rp,chk)
......
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