Commit 7bc40452 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c79100350.lua

parent 956569db
......@@ -6,7 +6,7 @@ function c79100350.initial_effect(c)
--to hand or grave
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(79100350,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_TOGRAVE)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_TOGRAVE+CATEGORY_GRAVE_ACTION)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
......@@ -52,7 +52,7 @@ function c79100350.operation(e,tp,eg,ep,ev,re,r,rp)
ck=Duel.SendtoGrave(tc,REASON_EFFECT)
end
if ck>0 and tc:IsLocation(LOCATION_HAND+LOCATION_GRAVE) then
if Duel.IsExistingMatchingCard(c79100350.thfilter,tp,LOCATION_DECK,0,1,nil)
if Duel.IsExistingMatchingCard(c79100350.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(79100350,3)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c79100350.thfilter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil)
......
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