Commit 0a527a78 authored by wind2009's avatar wind2009 Committed by GitHub

Fix Hazy Glory (#1361)

parent 513cfbda
...@@ -22,11 +22,15 @@ function c43708041.initial_effect(c) ...@@ -22,11 +22,15 @@ function c43708041.initial_effect(c)
e3:SetCode(EVENT_FREE_CHAIN) e3:SetCode(EVENT_FREE_CHAIN)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetCondition(c43708041.thcon)
e3:SetCost(c43708041.thcost) e3:SetCost(c43708041.thcost)
e3:SetTarget(c43708041.thtg) e3:SetTarget(c43708041.thtg)
e3:SetOperation(c43708041.thop) e3:SetOperation(c43708041.thop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c43708041.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsStatus(STATUS_EFFECT_ENABLED)
end
function c43708041.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c43708041.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
Duel.SendtoGrave(e:GetHandler(),REASON_COST) Duel.SendtoGrave(e:GetHandler(),REASON_COST)
......
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