Commit 58c25936 authored by DailyShana's avatar DailyShana

fix

parent 8c99e07c
...@@ -40,13 +40,6 @@ function c42776855.initial_effect(c) ...@@ -40,13 +40,6 @@ function c42776855.initial_effect(c)
e5:SetCondition(c42776855.atkcon) e5:SetCondition(c42776855.atkcon)
e5:SetOperation(c42776855.atkop) e5:SetOperation(c42776855.atkop)
c:RegisterEffect(e5) c:RegisterEffect(e5)
--Destroy
local e6=Effect.CreateEffect(c)
e6:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e6:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e6:SetCode(EVENT_LEAVE_FIELD_P)
e6:SetOperation(c42776855.checkop)
c:RegisterEffect(e6)
--Destroy2 --Destroy2
local e7=Effect.CreateEffect(c) local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD) e7:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
...@@ -105,11 +98,6 @@ function c42776855.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -105,11 +98,6 @@ function c42776855.atkop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end end
function c42776855.checkop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsDisabled() then
e:SetLabel(1)
else e:SetLabel(0) end
end
function c42776855.descon2(e,tp,eg,ep,ev,re,r,rp) function c42776855.descon2(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetHandler():GetFirstCardTarget() local tc=e:GetHandler():GetFirstCardTarget()
return tc and eg:IsContains(tc) return tc and eg:IsContains(tc)
......
...@@ -54,7 +54,7 @@ function c7198399.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -54,7 +54,7 @@ function c7198399.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c7198399.spop(e,tp,eg,ep,ev,re,r,rp) function c7198399.spop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)>0 then if tc:IsRelateToEffect(e) and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)>0 then
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
if a and a:IsAttackable() and a:IsFaceup() and not a:IsImmuneToEffect(e) and not a:IsStatus(STATUS_ATTACK_CANCELED) then if a and a:IsAttackable() and a:IsFaceup() and not a:IsImmuneToEffect(e) and not a:IsStatus(STATUS_ATTACK_CANCELED) then
Duel.BreakEffect() Duel.BreakEffect()
......
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