Commit 03d0fc5b authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent acd9443b
Pipeline #30200 passed with stages
in 30 minutes and 6 seconds
......@@ -45,20 +45,15 @@ function c50223175.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
tgc=Duel.SelectMatchingCard(tp,c50223175.tgfilter,tp,LOCATION_MZONE,0,1,1,nil,e,tp):GetFirst()
if not tgc then return end
local race=tgc:GetRace()
local attr=tgc:GetAttribute()
local level=tgc:GetLevel()
if Duel.Release(tgc,REASON_EFFECT)>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
local race=tgc:GetOriginalRace()
local attr=tgc:GetOriginalAttribute()
local level=tgc:GetOriginalLevel()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
g=Duel.SelectMatchingCard(tp,c50223175.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,race,attr,level,e,tp)
local tc=g:GetFirst()
if tc then
Duel.SpecialSummon(tc,0,tp,tp,true,true,POS_FACEUP)
if tc:IsPreviousLocation(LOCATION_DECK) then Duel.ShuffleDeck(tp) end
end
local g=Duel.SelectMatchingCard(tp,c50223175.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,race,attr,level,e,tp)
Duel.SpecialSummon(g,0,tp,tp,true,true,POS_FACEUP)
Duel.BreakEffect()
local splv=tc:GetLevel()
Duel.SetLP(tp,Duel.GetLP(tp)-(splv-level)*500)
Duel.SetLP(tp,Duel.GetLP(tp)-(g:GetFirst():GetLevel()-level)*500)
end
end
function c50223175.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
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