From 775ad2db480387fd0a310a8fe54cb9a8b3d0f3f3 Mon Sep 17 00:00:00 2001 From: TheOnePharaoh Date: Wed, 4 Jan 2017 01:41:01 -0600 Subject: [PATCH] =?UTF-8?q?Fixed=20Cipher=20=C3=89tranger=20(Anime)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Couldn't trigger After Discarded By A card Effect --- script/c511009180.lua | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/script/c511009180.lua b/script/c511009180.lua index 5d221d8e..d5acdc2a 100644 --- a/script/c511009180.lua +++ b/script/c511009180.lua @@ -1,18 +1,19 @@ ---Cipher Stranger (Anime) +--Cipher Étranger (Anime) function c511009180.initial_effect(c) --search - local e2=Effect.CreateEffect(c) - e2:SetDescription(aux.Stringid(73146473,1)) - e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) - e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) - e2:SetCode(EVENT_TO_GRAVE) - e2:SetTarget(c511009180.thtg) - e2:SetOperation(c511009180.thop) - c:RegisterEffect(e2) + local e1=Effect.CreateEffect(c) + e1:SetDescription(aux.Stringid(73146473,1)) + e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) + e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) + e1:SetProperty(EFFECT_FLAG_DELAY) + e1:SetCode(EVENT_TO_GRAVE) + e1:SetTarget(c511009180.thtg) + e1:SetOperation(c511009180.thop) + c:RegisterEffect(e1) end function c511009180.sfilter(c) - return c:IsSetCard(0x95) and c:IsType(TYPE_SPELL) and c:IsAbleToHand() + return c:IsSetCard(0x95) and c:IsType(TYPE_SPELL) and c:IsAbleToHand() end function c511009180.thtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(c511009180.sfilter,tp,LOCATION_DECK,0,1,nil) end