Commit be856fc1 authored by nekrozar's avatar nekrozar

fix Vendread Nightmare

https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=4&cid=13707

■『そのモンスターのレベルはターン終了時までリリースしたモンスターの数だけ上がる』効果を発動する際に、コストとして、自分の手札の「ヴェンデット」と名のついたモンスター及び自分のモンスターゾーンに存在する「ヴェンデット」と名のついたモンスターを、任意の数だけリリースします。
parent c83d9163
......@@ -35,7 +35,7 @@ function c33971095.cfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x106)
end
function c33971095.filter(c,tp)
return c:IsFaceup() and c:IsLevelAbove(1) and Duel.CheckReleaseGroup(tp,c33971095.cfilter,1,c,c)
return c:IsFaceup() and c:IsLevelAbove(1) and Duel.CheckReleaseGroupEx(tp,c33971095.cfilter,1,c,c)
end
function c33971095.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c33971095.filter(chkc) end
......@@ -49,7 +49,7 @@ function c33971095.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local tc=Duel.SelectTarget(tp,c33971095.filter,tp,LOCATION_MZONE,0,1,1,nil,tp):GetFirst()
local sg=Duel.SelectReleaseGroup(tp,c33971095.cfilter,1,1,tc,tc)
local sg=Duel.SelectReleaseGroupEx(tp,c33971095.cfilter,1,1,tc,tc)
Duel.Release(sg,REASON_COST)
e:SetLabel(sg:GetCount())
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