Commit ca0068fb authored by VanillaSalt's avatar VanillaSalt

Merge pull request #1441 from DailyShana/patch-5

fix
parents 7bc2b80f ce31abda
...@@ -61,6 +61,7 @@ function c17086528.rktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -61,6 +61,7 @@ function c17086528.rktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SelectTarget(tp,c17086528.lvfilter,tp,LOCATION_MZONE,0,1,1,g:GetFirst(),g:GetFirst():GetRank()) Duel.SelectTarget(tp,c17086528.lvfilter,tp,LOCATION_MZONE,0,1,1,g:GetFirst(),g:GetFirst():GetRank())
end end
function c17086528.rkop(e,tp,eg,ep,ev,re,r,rp) function c17086528.rkop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local tc=e:GetLabelObject() local tc=e:GetLabelObject()
local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local lc=tg:GetFirst() local lc=tg:GetFirst()
......
...@@ -50,6 +50,7 @@ function c17979378.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -50,6 +50,7 @@ function c17979378.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil) Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil)
end end
function c17979378.atkop(e,tp,eg,ep,ev,re,r,rp) function c17979378.atkop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) then if tc:IsFaceup() and tc:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
...@@ -40,6 +40,7 @@ function c39153655.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -40,6 +40,7 @@ function c39153655.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c39153655.atkop(e,tp,eg,ep,ev,re,r,rp) function c39153655.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) and tc:GetLevel()~=4 then if tc:IsFaceup() and tc:IsRelateToEffect(e) and tc:GetLevel()~=4 then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -35,6 +35,7 @@ function c43785278.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -35,6 +35,7 @@ function c43785278.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end end
function c43785278.desop(e,tp,eg,ep,ev,re,r,rp) function c43785278.desop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then if tc:IsRelateToEffect(e) and tc:IsFaceup() then
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
......
...@@ -47,6 +47,7 @@ function c47198668.atktg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -47,6 +47,7 @@ function c47198668.atktg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SelectTarget(tp,c47198668.filter1,tp,LOCATION_MZONE,0,1,1,nil) Duel.SelectTarget(tp,c47198668.filter1,tp,LOCATION_MZONE,0,1,1,nil)
end end
function c47198668.atkop1(e,tp,eg,ep,ev,re,r,rp) function c47198668.atkop1(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) then if tc:IsFaceup() and tc:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
...@@ -54,6 +54,7 @@ function c81571633.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -54,6 +54,7 @@ function c81571633.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SelectTarget(tp,c81571633.atkfilter,tp,LOCATION_MZONE,0,1,1,nil) Duel.SelectTarget(tp,c81571633.atkfilter,tp,LOCATION_MZONE,0,1,1,nil)
end end
function c81571633.atkop(e,tp,eg,ep,ev,re,r,rp) function c81571633.atkop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) then if tc:IsFaceup() and tc:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
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