Commit d3ae337a authored by VanillaSalt's avatar VanillaSalt

fix

parent f7917f1c
......@@ -92,11 +92,15 @@ function c25586143.atkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c25586143.regop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(25586143,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,2)
if Duel.GetCurrentPhase()==PHASE_STANDBY then
e:GetHandler():RegisterFlagEffect(25586143,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_STANDBY,0,2,Duel.GetTurnCount())
else
e:GetHandler():RegisterFlagEffect(25586143,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_STANDBY,0,1,0)
end
end
function c25586143.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:GetTurnID()~=Duel.GetTurnCount() and c:GetFlagEffect(25586143)>0
local tid=e:GetHandler():GetFlagEffectLabel(25586143)
return tid and tid~=Duel.GetTurnCount()
end
function c25586143.thfilter(c)
return c:IsSetCard(0x46) and c:IsType(TYPE_SPELL) and c:IsAbleToHand()
......
......@@ -2,17 +2,28 @@
function c62315111.initial_effect(c)
--chain attack
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(62315111,0))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_BATTLE_DESTROYING)
e1:SetCondition(c62315111.atcon)
e1:SetOperation(c62315111.atop)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_BATTLED)
e1:SetOperation(c62315111.regop)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(62315111,0))
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_BATTLE_DESTROYING)
e2:SetCondition(c62315111.atcon)
e2:SetOperation(c62315111.atop)
c:RegisterEffect(e2)
end
function c62315111.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local bc=c:GetBattleTarget()
if bc and bc:GetCounter(0x100e)>0 then
c:RegisterFlagEffect(62315111,RESET_PHASE+PHASE_DAMAGE,0,1)
end
end
function c62315111.atcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return aux.bdcon(e,tp,eg,ep,ev,re,r,rp) and c:IsChainAttackable()
and c:GetBattleTarget():GetCounter(0x100e)>0
return aux.bdcon(e,tp,eg,ep,ev,re,r,rp) and c:IsChainAttackable() and c:GetFlagEffect(62315111)~=0
end
function c62315111.atop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChainAttack()
......
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