Commit 13f44b57 authored by Tachibana's avatar Tachibana

得得得得得

parent 901ee80b
...@@ -66,7 +66,7 @@ function cm.mtcon() ...@@ -66,7 +66,7 @@ function cm.mtcon()
return function(e,c,og) return function(e,c,og)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return Duel.IsPlayerCanSpecialSummonMonster(tp,m+1,nil,nil,3000,3000,8,RACE_DRAGON,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,3000,3000,8,RACE_DRAGON,ATTRIBUTE_DARK) and Duel.IsExistingMatchingCard(cm.rlfilter,tp,LOCATION_HAND,0,1,c,tp) and Duel.GetFlagEffect(tp,m)==0
end end
end end
function cm.mtdo() function cm.mtdo()
...@@ -74,7 +74,7 @@ function cm.mtdo() ...@@ -74,7 +74,7 @@ function cm.mtdo()
if not sg then if not sg then
sg=Group.CreateGroup() sg=Group.CreateGroup()
end 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) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=g:SelectSubGroup(tp,aux.TRUE,true,1,1) local g=g:SelectSubGroup(tp,aux.TRUE,true,1,1)
if not g then if not g then
...@@ -98,7 +98,7 @@ function cm.mtdo() ...@@ -98,7 +98,7 @@ function cm.mtdo()
end end
end end
function cm.check(c) function cm.check(c)
return c:IsAbleToHand() and aux.IsCodeListed(c,16172004) and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c) return c:IsAbleToHand() and aux.IsCodeListed(c,16172004) and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c) and c:IsFaceup()
end end
function cm.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsAbleToHand() and cm.check(chkc) end if chkc then return chkc:IsAbleToHand() and cm.check(chkc) end
...@@ -143,7 +143,7 @@ function cm.spop(e,tp) ...@@ -143,7 +143,7 @@ function cm.spop(e,tp)
e1:SetReset(RESET_EVENT+0x7e0000) e1:SetReset(RESET_EVENT+0x7e0000)
c:RegisterEffect(e1) c:RegisterEffect(e1)
c:RegisterFlagEffect(16100000,RESET_EVENT+0x7e0000,0,0) c:RegisterFlagEffect(16100000,RESET_EVENT+0x7e0000,0,0)
c:ReplaceEffect(side_code,RESET_EVENT+0x7e0000) c:ReplaceEffect(sidecode,RESET_EVENT+0x7e0000)
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end end
end 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