Commit a5e32f21 authored by POLYMER's avatar POLYMER

fix

parent c2e5b9fa
...@@ -143,7 +143,7 @@ function s.initial_effect(c) ...@@ -143,7 +143,7 @@ function s.initial_effect(c)
e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCountLimit(1,id+1) e1:SetCountLimit(1,id+1)
e1:SetCost(s.atkcost) e1:SetCost(s.atkcost)
e1:SetCondition(s.atkcon) e1:SetCondition(s.atkcon)
...@@ -168,7 +168,7 @@ function s.initial_effect(c) ...@@ -168,7 +168,7 @@ function s.initial_effect(c)
end end
function s.atkcon(e,tp,eg,ep,ev,re,r,rp) function s.atkcon(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
return ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE return ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE and aux.dscon(e,tp,eg,ep,ev,re,r,rp)
end end
function s.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsDiscardable()end if chk==0 then return e:GetHandler():IsDiscardable()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