Commit 86caafdf authored by VanillaSalt's avatar VanillaSalt

fix

parent 25a6d661
......@@ -26,7 +26,7 @@ function c24838456.target(e,tp,eg,ep,ev,re,r,rp,chk)
local te=Duel.GetChainInfo(i,CHAININFO_TRIGGERING_EFFECT)
local tc=te:GetHandler()
ng:AddCard(tc)
if ttc:IsRelateToEffect(te) then
if tc:IsRelateToEffect(te) then
dg:AddCard(tc)
end
end
......
......@@ -67,7 +67,7 @@ function c57707471.xyztg(e,tp,eg,ep,ev,re,r,rp,chk,c,og,min,max)
mg=Duel.GetFieldGroup(tp,LOCATION_MZONE,0)
end
local b1=Duel.CheckXyzMaterial(c,nil,6,2,2,og)
local b2=ct<1 and (not min or min<=1) and mg:IsExists(c57707471.ovfilter,1,nil)
local b2=ct<1 and (not min or min<=1) and mg:IsExists(c57707471.ovfilter,1,nil,tp,c)
local g=nil
if b2 and (not b1 or Duel.SelectYesNo(tp,aux.Stringid(57707471,0))) then
e:SetLabel(1)
......
......@@ -18,13 +18,13 @@ function c74439492.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c74439492.filter,tp,LOCATION_MZONE,0,1,nil)
and Duel.IsExistingMatchingCard(c74439492.filter,tp,LOCATION_MZONE,0,2,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,c74439492.filter,tp,LOCATION_MZONE,0,1,1,nil,false)
local g=Duel.SelectTarget(tp,c74439492.filter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end
function c74439492.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) and Duel.Destroy(tc,REASON_EFFECT)~=0 then
local g=Duel.GetMatchingGroup(c74439492.filter,tp,LOCATION_MZONE,0,nil,true)
local g=Duel.GetMatchingGroup(c74439492.filter,tp,LOCATION_MZONE,0,nil)
local ac=g:GetFirst()
while ac do
local e1=Effect.CreateEffect(e:GetHandler())
......
......@@ -14,8 +14,9 @@ function c80549379.filter(c)
end
function c80549379.repcon(e)
local c=e:GetHandler()
local tp=c:GetControler()
return c:IsFaceup() and c:IsReason(REASON_DESTROY)
and Duel.IsExistingMatchingCard(c80549379.filter,tp,LOCATION_MZONE,0,1,e:GetHandler())
and Duel.IsExistingMatchingCard(c80549379.filter,tp,LOCATION_MZONE,0,1,c)
end
function c80549379.repop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -64,7 +64,7 @@ function c93016201.target1(e,tp,eg,ep,ev,re,r,rp,chk)
local te=Duel.GetChainInfo(ct-1,CHAININFO_TRIGGERING_EFFECT)
local tc=te:GetHandler()
Duel.SetOperationInfo(0,CATEGORY_DISABLE,tc,1,0,0)
if ttc:IsRelateToEffect(te) then
if tc:IsRelateToEffect(te) then
Duel.SetOperationInfo(0,CATEGORY_DESTROY,tc,1,0,0)
end
end
......
......@@ -21,14 +21,14 @@ function c95519486.initial_effect(c)
c:RegisterEffect(e2)
end
function c95519486.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x3d) and c:GetCode()~=95519486
return c:IsFaceup() and c:IsSetCard(0x3d) and not c:IsCode(95519486)
end
function c95519486.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler()==Duel.GetAttacker() and Duel.GetAttackTarget()
and Duel.IsExistingMatchingCard(c95519486.cfilter,tp,LOCATION_MZONE,0,1,nil)
end
function c95519486.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetAttackTarget():IsRelateToBattle()() end
if chk==0 then return Duel.GetAttackTarget():IsRelateToBattle() end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,Duel.GetAttackTarget(),1,0,0)
end
function c95519486.desop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -34,7 +34,7 @@ function c99064191.target1(e,tp,eg,ep,ev,re,r,rp,chk)
and Duel.IsChainDisablable(ct-1) and Duel.SelectYesNo(tp,aux.Stringid(99064191,1)) then
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
Duel.SetOperationInfo(0,CATEGORY_DISABLE,tc,1,0,0)
if ttc:IsRelateToEffect(pe) then
if tc:IsRelateToEffect(pe) then
Duel.SetOperationInfo(0,CATEGORY_DESTROY,tc,1,0,0)
end
e:SetLabel(1)
......
......@@ -1577,6 +1577,7 @@ function Auxiliary.PendOperation()
until ft==0 or ect==0 or not Duel.SelectYesNo(tp,210)
local hg=tg:Filter(Card.IsLocation,nil,LOCATION_HAND)
if ft>0 and ect==0 and hg:GetCount()>0 and Duel.SelectYesNo(tp,210) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=hg:Select(tp,1,ft,nil)
sg:Merge(g)
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