Commit eb93b737 authored by Tachibana's avatar Tachibana 🐟

pic

parent ab5cf402
Pipeline #26392 passed with stages
in 23 minutes and 51 seconds
No preview for this file type
......@@ -18,12 +18,12 @@ function c50221310.mfilter(c)
return c:IsSetCard(0xcb3)
end
function c50221310.thcfilter(c)
return bit.band(c:GetType(),0x81)==0x81 and c:IsSetCard(0xcb3) and c:IsAbleToGraveAsCost()
return bit.band(c:GetType(),0x81)==0x81 and c:IsSetCard(0xcb3) and c:IsLocation(LOCATION_HAND)
end
function c50221310.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c50221310.thcfilter,tp,LOCATION_HAND,0,1,nil) end
if chk==0 then return Duel.CheckReleaseGroupEx(tp,c50221310.thcfilter,1,REASON_COST,true,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectMatchingCard(tp,c50221310.thcfilter,tp,LOCATION_HAND,0,1,1,nil)
local g=Duel.SelectReleaseGroupEx(tp,c50221310.thcfilter,1,1,REASON_COST,true,nil)
Duel.Release(g,REASON_COST)
end
function c50221310.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -60,12 +60,12 @@ function c50221315.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function c50221315.thcfilter(c)
return bit.band(c:GetType(),0x81)==0x81 and c:IsSetCard(0xcb3) and c:IsAbleToGraveAsCost()
return bit.band(c:GetType(),0x81)==0x81 and c:IsSetCard(0xcb3) and c:IsLocation(LOCATION_HAND)
end
function c50221315.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c50221315.thcfilter,tp,LOCATION_HAND,0,1,nil) end
if chk==0 then return Duel.CheckReleaseGroupEx(tp,c50221315.thcfilter,1,REASON_COST,true,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectMatchingCard(tp,c50221315.thcfilter,tp,LOCATION_HAND,0,1,1,nil)
local g=Duel.SelectReleaseGroupEx(tp,c50221315.thcfilter,1,1,REASON_COST,true,nil)
Duel.Release(g,REASON_COST)
end
function c50221315.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -48,12 +48,12 @@ function c50221320.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function c50221320.thcfilter(c)
return bit.band(c:GetType(),0x81)==0x81 and c:IsSetCard(0xcb3) and c:IsAbleToGraveAsCost()
return bit.band(c:GetType(),0x81)==0x81 and c:IsSetCard(0xcb3) and c:IsLocation(LOCATION_HAND)
end
function c50221320.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c50221320.thcfilter,tp,LOCATION_HAND,0,1,nil) end
if chk==0 then return Duel.CheckReleaseGroupEx(tp,c50221320.thcfilter,1,REASON_COST,true,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectMatchingCard(tp,c50221320.thcfilter,tp,LOCATION_HAND,0,1,1,nil)
local g=Duel.SelectReleaseGroupEx(tp,c50221320.thcfilter,1,1,REASON_COST,true,nil)
Duel.Release(g,REASON_COST)
end
function c50221320.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -58,16 +58,4 @@ end
function cm.drop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_TO_HAND)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsLocation,LOCATION_DECK))
if Duel.GetTurnPlayer()==tp then
e1:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN,2)
else
e1:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN)
end
Duel.RegisterEffect(e1,tp)
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