Commit 87610e27 authored by nekrozar's avatar nekrozar Committed by DailyShana

fix Dark Designator (#370)

* fix

* revert
parent dcfe2ed5
...@@ -10,14 +10,16 @@ function c78053598.initial_effect(c) ...@@ -10,14 +10,16 @@ function c78053598.initial_effect(c)
end end
function c78053598.target(e,tp,eg,ep,ev,re,r,rp,chk) function c78053598.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,0,LOCATION_DECK,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,0,LOCATION_DECK,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,564)
local code=Duel.AnnounceCard(tp,TYPE_MONSTER)
Duel.SetTargetParam(code)
Duel.SetOperationInfo(0,CATEGORY_ANNOUNCE,nil,0,tp,TYPE_MONSTER) Duel.SetOperationInfo(0,CATEGORY_ANNOUNCE,nil,0,tp,TYPE_MONSTER)
end end
function c78053598.filter(c,code) function c78053598.filter(c,code)
return c:IsType(TYPE_MONSTER) and c:IsCode(code) and c:IsAbleToHand() return c:IsType(TYPE_MONSTER) and c:IsCode(code) and c:IsAbleToHand()
end end
function c78053598.activate(e,tp,eg,ep,ev,re,r,rp) function c78053598.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,564) local code=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM)
local code=Duel.AnnounceCard(tp,TYPE_MONSTER)
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(1-tp,c78053598.filter,1-tp,LOCATION_DECK,0,1,1,nil,code) local g=Duel.SelectMatchingCard(1-tp,c78053598.filter,1-tp,LOCATION_DECK,0,1,1,nil,code)
local tc=g:GetFirst() local tc=g:GetFirst()
......
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