Commit 630838b5 authored by GuGu's avatar GuGu

Update c21085.lua

parent 7b1d0329
Pipeline #39982 passed with stage
in 1 minute and 4 seconds
......@@ -21,7 +21,7 @@ function c21085.initial_effect(c)
--tohand
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(21085,1))
e2:SetCategory(CATEGORY_TOHAND)
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_HANDES)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_TO_GRAVE)
......@@ -85,6 +85,6 @@ function c21085.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.DiscardHand(tp,Card.IsDisCardable,1,1,REASON_EFFECT,nil)
Duel.DiscardHand(tp,Card.IsDisCardable,1,1,REASON_EFFECT+REASON_DISCARD,nil)
end
end
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