Commit 4ca38617 authored by VanillaSalt's avatar VanillaSalt

fix

parent f6637d20
...@@ -166,7 +166,7 @@ function c29432356.penop1(e,tp,eg,ep,ev,re,r,rp,c,sg,og) ...@@ -166,7 +166,7 @@ function c29432356.penop1(e,tp,eg,ep,ev,re,r,rp,c,sg,og)
if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end
local tg=nil local tg=nil
if og then if og then
tg=og:Filter(tp,c29432356.penfilter,nil,e,tp,lscale,rscale) tg=og:Filter(c29432356.penfilter,nil,e,tp,lscale,rscale)
else else
tg=Duel.GetMatchingGroup(c29432356.penfilter,tp,LOCATION_HAND+LOCATION_EXTRA,0,nil,e,tp,lscale,rscale) tg=Duel.GetMatchingGroup(c29432356.penfilter,tp,LOCATION_HAND+LOCATION_EXTRA,0,nil,e,tp,lscale,rscale)
end end
...@@ -224,7 +224,7 @@ function c29432356.penop2(e,tp,eg,ep,ev,re,r,rp,c,sg,og) ...@@ -224,7 +224,7 @@ function c29432356.penop2(e,tp,eg,ep,ev,re,r,rp,c,sg,og)
if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end
local tg=nil local tg=nil
if og then if og then
tg=og:Filter(tp,c29432356.penfilter,nil,e,tp,lscale,rscale) tg=og:Filter(c29432356.penfilter,nil,e,tp,lscale,rscale)
else else
tg=Duel.GetMatchingGroup(c29432356.penfilter,tp,LOCATION_EXTRA,0,nil,e,tp,lscale,rscale) tg=Duel.GetMatchingGroup(c29432356.penfilter,tp,LOCATION_EXTRA,0,nil,e,tp,lscale,rscale)
end end
......
...@@ -20,7 +20,7 @@ function c62645025.initial_effect(c) ...@@ -20,7 +20,7 @@ function c62645025.initial_effect(c)
e2:SetCost(c62645025.drcost) e2:SetCost(c62645025.drcost)
e2:SetTarget(c62645025.drtg) e2:SetTarget(c62645025.drtg)
e2:SetOperation(c62645025.drop) e2:SetOperation(c62645025.drop)
c:RegisterEffect(e1) c:RegisterEffect(e2)
end end
function c62645025.condition(e,tp,eg,ep,ev,re,r,rp) function c62645025.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttacker():IsControler(1-tp) return Duel.GetAttacker():IsControler(1-tp)
......
...@@ -9,7 +9,7 @@ function c69452756.initial_effect(c) ...@@ -9,7 +9,7 @@ function c69452756.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--destroy --destroy
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(36970611,0)) e2:SetDescription(aux.Stringid(69452756,0))
e2:SetCategory(CATEGORY_DESTROY) e2:SetCategory(CATEGORY_DESTROY)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
......
...@@ -24,7 +24,7 @@ end ...@@ -24,7 +24,7 @@ end
function c7161742.filter(c,e,tp) function c7161742.filter(c,e,tp)
return c:IsLevelBelow(4) and c:IsSetCard(0x10f3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(4) and c:IsSetCard(0x10f3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c7161742.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c7161742.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c7161742.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c7161742.filter(chkc,e,tp) end
if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133) if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>1 and Duel.GetLocationCount(tp,LOCATION_MZONE)>1
......
...@@ -106,7 +106,7 @@ function c76647978.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -106,7 +106,7 @@ function c76647978.spop(e,tp,eg,ep,ev,re,r,rp)
if not tc:IsRelateToEffect(e) then return end if not tc:IsRelateToEffect(e) then return end
local mg=tc:GetMaterial() local mg=tc:GetMaterial()
if mg:GetCount()>0 and mg:GetCount()<=Duel.GetLocationCount(tp,LOCATION_MZONE) if mg:GetCount()>0 and mg:GetCount()<=Duel.GetLocationCount(tp,LOCATION_MZONE)
and mg:IsExists(c76647978.mgfilter,1,nil,e,tp,tc) and not Duel.IsPlayerAffectedByEffect(tp,59822133) then and mg:IsExists(c76647978.mgfilter,1,nil,e,tp,tc,mg) and not Duel.IsPlayerAffectedByEffect(tp,59822133) then
local sc=mg:GetFirst() local sc=mg:GetFirst()
while sc do while sc do
if Duel.SpecialSummonStep(sc,0,tp,tp,false,false,POS_FACEUP) then if Duel.SpecialSummonStep(sc,0,tp,tp,false,false,POS_FACEUP) then
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
function c94982447.initial_effect(c) function c94982447.initial_effect(c)
--summon with 1 tribute --summon with 1 tribute
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(22499034,0)) e1:SetDescription(aux.Stringid(94982447,0))
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SUMMON_PROC) e1:SetCode(EFFECT_SUMMON_PROC)
......
...@@ -67,7 +67,7 @@ function c97795930.cfilter(c) ...@@ -67,7 +67,7 @@ function c97795930.cfilter(c)
return c:IsFaceup() and c:IsCode(22702055) return c:IsFaceup() and c:IsCode(22702055)
end end
function c97795930.handcon(e) function c97795930.handcon(e)
return Duel.IsExistingMatchingCard(c97795930.filter,e:GetHandlerPlayer(),LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) return Duel.IsExistingMatchingCard(c97795930.cfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
or Duel.IsEnvironment(22702055) or Duel.IsEnvironment(22702055)
end end
function c97795930.repfilter(c,tp) function c97795930.repfilter(c,tp)
......
...@@ -1587,7 +1587,7 @@ function Auxiliary.PendOperation() ...@@ -1587,7 +1587,7 @@ function Auxiliary.PendOperation()
if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end
local tg=nil local tg=nil
if og then if og then
tg=og:Filter(tp,Auxiliary.PConditionFilter,nil,e,tp,lscale,rscale) tg=og:Filter(Auxiliary.PConditionFilter,nil,e,tp,lscale,rscale)
else else
tg=Duel.GetMatchingGroup(Auxiliary.PConditionFilter,tp,LOCATION_HAND+LOCATION_EXTRA,0,nil,e,tp,lscale,rscale) tg=Duel.GetMatchingGroup(Auxiliary.PConditionFilter,tp,LOCATION_HAND+LOCATION_EXTRA,0,nil,e,tp,lscale,rscale)
end 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