Commit 6d101da1 authored by nekrozar's avatar nekrozar Committed by mercury233

fix (#1168)

parent 0496157b
...@@ -3,11 +3,9 @@ function c41160595.initial_effect(c) ...@@ -3,11 +3,9 @@ function c41160595.initial_effect(c)
--set --set
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(41160595,0)) e1:SetDescription(aux.Stringid(41160595,0))
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_TO_GRAVE) e1:SetCode(EVENT_TO_GRAVE)
e1:SetCondition(c41160595.setcon) e1:SetCondition(c41160595.setcon)
e1:SetTarget(c41160595.settg)
e1:SetOperation(c41160595.setop) e1:SetOperation(c41160595.setop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
...@@ -19,10 +17,6 @@ end ...@@ -19,10 +17,6 @@ end
function c41160595.filter(c) function c41160595.filter(c)
return c:GetType()==TYPE_SPELL+TYPE_QUICKPLAY and c:IsSSetable() return c:GetType()==TYPE_SPELL+TYPE_QUICKPLAY and c:IsSSetable()
end end
function c41160595.settg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingMatchingCard(c41160595.filter,tp,LOCATION_DECK,0,1,nil) end
end
function c41160595.setop(e,tp,eg,ep,ev,re,r,rp) function c41160595.setop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
......
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