Commit 1087fdd5 authored by mercury233's avatar mercury233

fix

parent 5baa5d7d
......@@ -7,14 +7,13 @@ function c100200202.initial_effect(c)
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetRange(LOCATION_MZONE)
e1:SetTarget(c100200202.atktg)
e1:SetOperation(c100200202.atkop)
c:RegisterEffect(e1)
--DEF DOWN
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(100200202,1))
e2:SetCategory(CATEGORY_DEFCHANGE)
e2:SetCategory(CATEGORY_DESTROY+CATEGORY_DEFCHANGE)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetRange(LOCATION_MZONE)
......@@ -63,13 +62,14 @@ function c100200202.desop(e,tp,eg,ep,ev,re,r,rp)
end
if tc:IsFaceup() and tc:IsRelateToEffect(e) then
local atk=c:GetAttack()
local def=tc:GetDefense()
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_UPDATE_DEFENSE)
e2:SetValue(-atk)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2)
if tc:IsDefense(0) then
if def~=0 and tc:IsDefense(0) then
Duel.BreakEffect()
Duel.Destroy(tc,REASON_EFFECT)
end
......
......@@ -7,7 +7,7 @@ function c100200203.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCountLimit(1,100200203+EFFECT_COUNT_CODE_OATH)
e1:SetCountLimit(1,100200203)
e1:SetCondition(c100200203.tkcon)
e1:SetTarget(c100200203.tktg)
e1:SetOperation(c100200203.tkop)
......
......@@ -76,7 +76,7 @@ function c100281063.atkcon(e,tp,eg,ep,ev,re,r,rp)
end
function c100281063.atkop(e,tp,eg,ep,ev,re,r,rp)
local a,at=Duel.GetBattleMonster(tp)
if not a:IsRelateToBattle() or a:IsFacedown() or not at:IsRelateToBattle() or at:IsFacedown() then return end
if not a or not d or not a:IsRelateToBattle() or a:IsFacedown() or not at:IsRelateToBattle() or at:IsFacedown() then return end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
......
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