Commit d496395b authored by nanahira's avatar nanahira

fix

parent 4b4d9074
......@@ -38,7 +38,7 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and chkc:IsFaceup() and Duel.IsExistingMatchingCard(cm.exfilter_chkc,tp,LOCATION_EXTRA,0,1,nil,e:GetHandler(),chkc,e:GetLabelObject():GetLevel()) end
if chk==0 then return Duel.IsExistingTarget(cm.mfilter,tp,LOCATION_MZONE,0,1,c,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FMATERIAL)
local g=Duel.SelectTarget(tp,cm.mfilter,tp,LOCATION_MZONE,0,1,1c,e,tp)
local g=Duel.SelectTarget(tp,cm.mfilter,tp,LOCATION_MZONE,0,1,1,c,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
e:SetLabelObject(g:GetFirst())
end
......@@ -46,7 +46,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if not c:IsRelateToEffect(e) or not tc:IsRelateToEffect(e) or tc:IsFacedown() or tc:IsControler(1-tp) or tc:IsImmuneToEffect(e) or c:IsImmuneToEffect(e) then return end
local exg=Duel.GetMatchingGroup(cm.mfilter,tp,LOCATION_EXTRA,0,nil,e,tp)
local exg=Duel.GetMatchingGroup(cm.exfilter,tp,LOCATION_EXTRA,0,nil,c,tc)
if #exg<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sc=exg:Select(tp,1,1,nil):GetFirst()
......@@ -82,7 +82,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetMZontCount()>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,37564015,0,0x21,3000,2500,10,RACE_PLANT,ATTRIBUTE_DARK)
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_DECK,0,1,nil,37564015) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK,0,1,1,nil,37564015)
if #g>0 then
local tc=g:GetFirst()
......
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