Commit ebc42bf8 authored by Tachibana's avatar Tachibana

clean useless

parent c657f084
No preview for this file type
......@@ -28,7 +28,7 @@ function cm.condition2(e,tp,eg,ep,ev,re,r,rp)
return re:IsActiveType(TYPE_MONSTER)
end
function cm.target2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,re:GetHandlerPlayer()) and Duel.IsPlayerCanDiscardDeck(tp,1) end
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,re:GetHandlerPlayer()) and Duel.GetLocationCount(re:GetHandlerPlayer(),LOCATION_MZONE)>0 and Duel.IsPlayerCanDiscardDeck(tp,1) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),0,tp,LOCATION_HAND)
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,1)
end
......
......@@ -29,7 +29,7 @@ function cm.condition2(e,tp,eg,ep,ev,re,r,rp)
end
function cm.target2(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,re:GetHandlerPlayer()) and c:GetFlagEffect(m)==0 end
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,re:GetHandlerPlayer()) and Duel.GetLocationCount(re:GetHandlerPlayer(),LOCATION_MZONE)>0 and c:GetFlagEffect(m)==0 end
c:RegisterFlagEffect(m,RESET_CHAIN,0,1)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),0,tp,LOCATION_HAND)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,0,tp,1)
......
......@@ -29,19 +29,19 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return re:IsHasType(EFFECT_TYPE_ACTIVATE)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMatchingGroupCount(Card.IsAbleToDeck,tp,LOCATION_ONFIELD,0,nil)>0 end
if chk==0 then return Duel.GetMatchingGroupCount(Card.IsAbleToDeck,tp,LOCATION_SZONE,0,nil)>0 end
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,0,0)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_ONFIELD,0,nil)
local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_SZONE,0,nil)
local sg=g:Select(tp,1,1,nil)
Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)
end
end
function cm.target2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,eg:GetFirst():GetControler()) end
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,eg:GetFirst():GetControler()) and Duel.GetLocationCount(re:GetHandlerPlayer(),LOCATION_MZONE)>0 end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),0,tp,LOCATION_HAND)
Duel.SetOperationInfo(0,CATEGORY_DISABLE,nil,0,tp,1)
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