Commit ce8fe9a2 authored by TanakaKotoha's avatar TanakaKotoha

lbwnb

parent fc58d6d2
...@@ -57,7 +57,7 @@ function c81021004.damop(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +57,7 @@ function c81021004.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangeBattleDamage(tp,0) Duel.ChangeBattleDamage(tp,0)
end end
function c81021004.condition(e,tp,eg,ep,ev,re,r,rp) function c81021004.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2 return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2 and aux.bpcon(e)
end end
function c81021004.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c81021004.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,800) end if chk==0 then return Duel.CheckLPCost(tp,800) end
......
...@@ -7,7 +7,7 @@ function cm.initial_effect(c) ...@@ -7,7 +7,7 @@ function cm.initial_effect(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(cm.condition) e1:SetCondition(aux.bpcon)
e1:SetOperation(cm.activate) e1:SetOperation(cm.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--no damage --no damage
...@@ -22,9 +22,6 @@ function cm.initial_effect(c) ...@@ -22,9 +22,6 @@ function cm.initial_effect(c)
e2:SetOperation(cm.damop) e2:SetOperation(cm.damop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()<PHASE_MAIN2
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp) function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
......
...@@ -24,7 +24,7 @@ function c81040012.initial_effect(c) ...@@ -24,7 +24,7 @@ function c81040012.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c81040012.con(e,tp,eg,ep,ev,re,r,rp) function c81040012.con(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_GRAVE) return e:GetHandler():IsPreviousLocation(LOCATION_GRAVE) and aux.bpcon(e)
end end
function c81040012.op(e,tp,eg,ep,ev,re,r,rp) function c81040012.op(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
...@@ -35,7 +35,7 @@ function c81040036.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,7 +35,7 @@ function c81040036.desop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c81040036.aetcon(e,tp,eg,ep,ev,re,r,rp) function c81040036.aetcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_GRAVE) return e:GetHandler():IsPreviousLocation(LOCATION_GRAVE) and aux.bpcon(e)
end end
function c81040036.actop(e,tp,eg,ep,ev,re,r,rp) function c81040036.actop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(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