Commit 7cf8d617 authored by Tachibana's avatar Tachibana

得得得得得

parent de094705
......@@ -67,7 +67,7 @@ function cm.mtcon()
return function(e,c,og)
if c==nil then return true end
local tp=c:GetControler()
return Duel.IsPlayerCanSpecialSummonMonster(tp,m+1,nil,nil,2500,1200,6,RACE_FIEND,ATTRIBUTE_DARK) and Duel.IsExistingMatchingCard(cm.rlfilter,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,c,tp) and Duel.GetFlagEffect(tp,m)==0
return Duel.IsPlayerCanSpecialSummonMonster(tp,m+1,nil,nil,2500,1200,6,RACE_FIEND,ATTRIBUTE_DARK) and Duel.IsExistingMatchingCard(cm.rlfilter,tp,LOCATION_HAND,0,1,c,tp) and Duel.GetFlagEffect(tp,m)==0
end
end
function cm.mtdo()
......@@ -75,7 +75,7 @@ function cm.mtdo()
if not sg then
sg=Group.CreateGroup()
end
local g=Duel.GetMatchingGroup(cm.rlfilter,tp,LOCATION_ONFIELD+LOCATION_HAND,0,c,tp)
local g=Duel.GetMatchingGroup(cm.rlfilter,tp,LOCATION_HAND,0,c,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=g:SelectSubGroup(tp,aux.TRUE,true,1,1)
if not g then
......
......@@ -70,7 +70,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local rg=Duel.GetDecktopGroup(tp,2)
if chk==0 then return rg:GetCount()==2 and rg:FilterCount(Card.IsAbleToRemove,nil)==2 end
if chk==0 then return rg:GetCount()==2 and rg:FilterCount(Card.IsAbleToRemove,nil)==2 and Duel.IsExistingMatchingCard(cm.rdcheck,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,rg,2,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,0,0)
......
......@@ -13,7 +13,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
end
function cm.filter(c,tp)
return Duel.IsCanAddCounter(tp,0x2cc,1,c) and c:IsAbleToHand()
return c:IsCode(16172015,16172017,16172018) and c:IsAbleToHand()
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil,tp) end
......
......@@ -32,8 +32,8 @@ end
function cm.tg(e,c)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsSetCard(0x562)
end
function cm.spcheck(c,e,tp)
return c:IsSetCard(0x562) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,SUMMON_VALUE_MONSTER_REBORN,tp,false,false)
function cm.spcheck(e,tp,c)
return c:IsSetCard(0x562) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE))
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(cm.spcheck,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,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