Commit 626ec73f authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c75005123.lua

parent 1139dba8
......@@ -6,7 +6,7 @@ function c75005123.initial_effect(c)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_CHAINING)
e1:SetRange(LOCATION_HAND)
--e1:SetCondition(c75005123.ttcon)
e1:SetCondition(c75005123.ttcon)
e1:SetCost(c75005123.ttcost)
e1:SetOperation(c75005123.ttop)
c:RegisterEffect(e1)
......@@ -17,7 +17,7 @@ end
function c75005123.ttcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsDiscardable() end
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
e:SetLabel(bit.band(re:GetHandler():GetType(),0x7))
e:SetLabel(re:GetActiveType())
end
function c75005123.ttop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
......@@ -30,14 +30,14 @@ function c75005123.ttop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp)
end
function c75005123.tgfilter(c,type)
return bit.band(c:GetType(),type)~=0 and c:IsAbleToGrave()
return bit.band(c:GetType(),type)==0 and c:IsAbleToGrave()
end
function c75005123.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,75005123)
local type=e:GetLabel()
if Duel.IsExistingMatchingCard(c75005123.tgfilter,tp,0,LOCATION_HAND+LOCATION_ONFIELD,1,nil,type) and Duel.SelectYesNo(tp,aux.Stringid(75005123,0)) then
local typ=e:GetLabel()
if Duel.IsExistingMatchingCard(c75005123.tgfilter,tp,0,LOCATION_HAND+LOCATION_ONFIELD,1,nil,typ) and Duel.SelectYesNo(tp,aux.Stringid(75005123,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c75005123.tgfilter,tp,0,LOCATION_HAND+LOCATION_ONFIELD,1,1,nil,type)
local g=Duel.SelectMatchingCard(1-tp,c75005123.tgfilter,tp,0,LOCATION_HAND+LOCATION_ONFIELD,1,1,nil,typ)
if #g>0 then
Duel.SendtoGrave(g,REASON_EFFECT)
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