Commit 25c5f460 authored by Steeldarkeagel's avatar Steeldarkeagel

Update c97811903.lua

Fix: Will no longer cause it to gain more ATK than The Wicked Avatar.
parent c2459915
--クリアー・バイス・ドラゴン
function c97811903.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_DAMAGE_CALCULATING)
e1:SetCondition(c97811903.condtion)
e1:SetValue(c97811903.atkval)
e1:SetOperation(c97811903.atkval)
c:RegisterEffect(e1)
--
local e2=Effect.CreateEffect(c)
......@@ -25,12 +23,17 @@ function c97811903.initial_effect(c)
e3:SetCode(97811903)
c:RegisterEffect(e3)
end
function c97811903.condtion(e)
return Duel.GetCurrentPhase()==PHASE_DAMAGE_CAL
and Duel.GetAttacker()==e:GetHandler() and Duel.GetAttackTarget()~=nil
function c97811903.condtion(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler()==Duel.GetAttacker() and Duel.GetAttackTarget()~=nil
end
function c97811903.atkval(e,c)
return Duel.GetAttackTarget():GetAttack()*2
function c97811903.atkval(e,tp,eg,ep,ev,re,r,rp)
local bc=Duel.GetAttackTarget()
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetReset(RESET_PHASE+RESET_DAMAGE_CAL)
e1:SetValue(bc:GetAttack()*2)
e:GetHandler():RegisterEffect(e1)
end
function c97811903.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=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