Commit 881ab754 authored by salix5's avatar salix5

fix

parent 68afa3ed
......@@ -10,6 +10,20 @@ function c87043568.initial_effect(c)
e1:SetTarget(c87043568.target)
e1:SetOperation(c87043568.operation)
c:RegisterEffect(e1)
--atkup
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(87043568,0))
e2:SetCategory(CATEGORY_ATKCHANGE)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetHintTiming(TIMING_DAMAGE_STEP)
e2:SetRange(LOCATION_SZONE)
e2:SetCountLimit(1)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e2:SetCondition(c87043568.atkcon)
e2:SetCost(c87043568.atkcost)
e2:SetOperation(c87043568.atkop)
c:RegisterEffect(e2)
end
function c87043568.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......@@ -51,21 +65,6 @@ function c87043568.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then
Duel.Equip(tp,c,tc)
--atkup
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(87043568,0))
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetRange(LOCATION_SZONE)
e1:SetCountLimit(1)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetCondition(c87043568.atkcon)
e1:SetCost(c87043568.atkcost)
e1:SetOperation(c87043568.atkop)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e1)
--Equip limit
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
......@@ -80,7 +79,7 @@ function c87043568.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function c87043568.eqlimit(e,c)
return c:GetControler()==e:GetOwnerPlayer() and c==e:GetLabelObject()
return c==e:GetLabelObject()
end
function c87043568.atkcon(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker()
......
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