Commit 5a8e3355 authored by mercury233's avatar mercury233 Committed by GitHub

fix ライトロード・バリア

parent 2b6aa7aa
...@@ -20,10 +20,11 @@ function c22201234.initial_effect(c) ...@@ -20,10 +20,11 @@ function c22201234.initial_effect(c)
end end
function c22201234.qcon(e,tp,eg,ep,ev,re,r,rp) function c22201234.qcon(e,tp,eg,ep,ev,re,r,rp)
local d=Duel.GetAttackTarget() local d=Duel.GetAttackTarget()
return d:IsFaceup() and d:IsSetCard(0x38) and d:IsControler(tp) and not e:GetHandler():IsStatus(STATUS_CHAINING) return d:IsFaceup() and d:IsSetCard(0x38) and d:IsControler(tp)
end end
function c22201234.qcost(e,tp,eg,ep,ev,re,r,rp,chk) function c22201234.qcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeckAsCost(tp,2) end if chk==0 then return e:GetHandler():GetFlagEffect(22201234)==0 and Duel.IsPlayerCanDiscardDeckAsCost(tp,2) end
e:GetHandler():RegisterFlagEffect(22201234,RESET_CHAIN,0,1)
Duel.DiscardDeck(tp,2,REASON_COST) Duel.DiscardDeck(tp,2,REASON_COST)
end end
function c22201234.qtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c22201234.qtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
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