Commit 7f77d9b3 authored by mercury233's avatar mercury233 Committed by DailyShana

fix 真竜の黙示録 (#829)

parent be08c9d0
--真竜の黙示録
function c61529473.initial_effect(c)
--Activate
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_ACTIVATE)
e0:SetCode(EVENT_FREE_CHAIN)
e0:SetHintTiming(0,TIMING_END_PHASE)
e0:SetTarget(c61529473.target)
c:RegisterEffect(e0)
--Activate(damage phase)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(61529473,0))
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_END_PHASE)
e1:SetTarget(c61529473.target)
e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetCountLimit(1,61529473)
e1:SetCondition(c61529473.atkcon1)
e1:SetCost(c61529473.cost)
e1:SetTarget(c61529473.atktg)
e1:SetOperation(c61529473.atkop)
c:RegisterEffect(e1)
--destory and atk & def down
local e2=Effect.CreateEffect(c)
......@@ -82,6 +95,9 @@ function c61529473.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
e:SetOperation(nil)
end
end
function c61529473.atkcon1(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_DAMAGE and not Duel.IsDamageCalculated()
end
function c61529473.atkcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()
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