Commit e46666ee authored by Tachibana's avatar Tachibana

eme

parent 38e9f96a
expansions/pics/75646973.jpg

59.9 KB | W: | H:

expansions/pics/75646973.jpg

53.3 KB | W: | H:

expansions/pics/75646973.jpg
expansions/pics/75646973.jpg
expansions/pics/75646973.jpg
expansions/pics/75646973.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -61,11 +61,11 @@ function cm.sumsuc(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp)
end
function cm.mttg(e,c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove() and c:IsRace(RACE_FAIRY)
end
function cm.mtval(e,c)
if not c then return false end
return c:IsRace(RACE_FAIRY)
return true
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.rmc,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,re:GetHandler():GetAttribute()) end
......
......@@ -53,18 +53,14 @@ function c75646951.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c75646951.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local ec=re:GetHandler()
local rc=re:GetHandler()
if Duel.NegateActivation(ev) then
if ec:IsStatus(STATUS_LEAVE_CONFIRMED) then
ec:CancelToGrave()
e:SetLabel(1)
end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)>0
and ec:IsRelateToEffect(re) and Duel.SelectYesNo(tp,aux.Stringid(75646967,2)) and ec:IsAbleToHand() then
Duel.BreakEffect()
Duel.SendtoHand(ec,nil,REASON_EFFECT)
elseif e:GetLabel()==1 then
ec:CancelToGrave(false)
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)>0 then
if rc:IsRelateToEffect(re) and not rc:IsHasEffect(EFFECT_CANNOT_TO_HAND) and Duel.IsPlayerCanSendtoHand(tp,rc) and Duel.SelectYesNo(tp,aux.Stringid(75646967,2)) then
Duel.BreakEffect()
rc:CancelToGrave()
Duel.SendtoHand(rc,nil,REASON_EFFECT)
end
end
end
end
......
......@@ -43,21 +43,17 @@ function c75646954.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function c75646954.disop(e,tp,eg,ep,ev,re,r,rp)
local ec=re:GetHandler()
local rc=re:GetHandler()
if Duel.NegateActivation(ev) and Duel.GetLocationCount(tp, LOCATION_MZONE)>0 then
if ec:IsStatus(STATUS_LEAVE_CONFIRMED) then
ec:CancelToGrave()
e:SetLabel(1)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c75646954.filter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 then
if Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)>0
and ec:IsRelateToEffect(re) and Duel.SelectYesNo(tp,aux.Stringid(75646967,2)) and ec:IsAbleToHand() then
Duel.BreakEffect()
Duel.SendtoHand(ec,nil,REASON_EFFECT)
elseif e:GetLabel()==1 then
ec:CancelToGrave(false)
if Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)>0 then
if rc:IsRelateToEffect(re) and not rc:IsHasEffect(EFFECT_CANNOT_TO_HAND) and Duel.IsPlayerCanSendtoHand(tp,rc) and Duel.SelectYesNo(tp,aux.Stringid(75646967,2)) then
Duel.BreakEffect()
rc:CancelToGrave()
Duel.SendtoHand(rc,nil,REASON_EFFECT)
end
end
end
end
......
......@@ -67,22 +67,18 @@ function c75646958.nstg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function c75646958.nsop(e,tp,eg,ep,ev,re,r,rp)
local ec=re:GetHandler()
if Duel.NegateActivation(ev) and Duel.GetLocationCount(tp, LOCATION_MZONE)>0 then
if ec:IsStatus(STATUS_LEAVE_CONFIRMED) then
ec:CancelToGrave()
e:SetLabel(1)
end
local rc=re:GetHandler()
if Duel.NegateActivation(ev) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c75646958.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
if g:GetCount()>0 then
if Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)>0
and ec:IsRelateToEffect(re) and Duel.SelectYesNo(tp,aux.Stringid(75646967,2)) and ec:IsAbleToHand() then
Duel.SendtoHand(ec,nil,REASON_EFFECT)
Duel.BreakEffect()
elseif e:GetLabel()==1 then
ec:CancelToGrave(false)
if Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)>0 then
if rc:IsRelateToEffect(re) and not rc:IsHasEffect(EFFECT_CANNOT_TO_HAND) and Duel.IsPlayerCanSendtoHand(tp,rc) and Duel.SelectYesNo(tp,aux.Stringid(75646967,2)) then
Duel.BreakEffect()
rc:CancelToGrave()
Duel.SendtoHand(rc,nil,REASON_EFFECT)
end
end
end
end
end
end
\ No newline at end of file
......@@ -17,6 +17,7 @@ function c75646961.initial_effect(c)
e2:SetCode(EVENT_SUMMON_NEGATED)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,5646961)
e2:SetCondition(c75646961.tdcon)
e2:SetTarget(c75646961.tdtg)
e2:SetOperation(c75646961.tdop)
......
......@@ -64,18 +64,14 @@ function c75646962.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c75646962.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local ec=re:GetHandler()
local rc=re:GetHandler()
if Duel.NegateActivation(ev) then
if ec:IsStatus(STATUS_LEAVE_CONFIRMED) then
ec:CancelToGrave()
e:SetLabel(1)
end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)>0
and ec:IsRelateToEffect(re) and Duel.SelectYesNo(tp,aux.Stringid(75646967,2)) and c:IsAbleToHand() then
Duel.BreakEffect()
Duel.SendtoHand(ec,nil,REASON_EFFECT)
elseif e:GetLabel()==1 then
ec:CancelToGrave(false)
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)>0 then
if rc:IsRelateToEffect(re) and not rc:IsHasEffect(EFFECT_CANNOT_TO_HAND) and Duel. IsPlayerCanSendtoHand(tp,rc) and Duel.SelectYesNo(tp,aux.Stringid(75646967,2)) then
Duel.BreakEffect()
rc:CancelToGrave()
Duel.SendtoHand(rc,nil,REASON_EFFECT)
end
end
end
end
\ No newline at end of file
......@@ -63,19 +63,14 @@ function c75646967.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c75646967.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local ec=re:GetHandler()
local rc=re:GetHandler()
if Duel.NegateActivation(ev) then
if ec:IsStatus(STATUS_LEAVE_CONFIRMED) then
ec:CancelToGrave()
e:SetLabel(1)
end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)>0
and ec:IsRelateToEffect(re) and ec:IsAbleToHand()
and Duel.SelectYesNo(tp,aux.Stringid(75646967,2)) then
Duel.BreakEffect()
Duel.SendtoHand(ec,nil,REASON_EFFECT)
elseif e:GetLabel()==1 then
ec:CancelToGrave(false)
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)>0 then
if rc:IsRelateToEffect(re) and not rc:IsHasEffect(EFFECT_CANNOT_TO_HAND) and Duel.IsPlayerCanSendtoHand(tp,rc) and Duel.SelectYesNo(tp,aux.Stringid(75646967,2)) then
Duel.BreakEffect()
rc:CancelToGrave()
Duel.SendtoHand(rc,nil,REASON_EFFECT)
end
end
end
end
\ No newline at end of file
......@@ -23,7 +23,7 @@ function cm.initial_effect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_SUMMON_NEGATED)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetRange(LOCATION_HAND+LOCATION_GRAVE)
e3:SetRange(LOCATION_ONFIELD+LOCATION_GRAVE)
e3:SetCountLimit(2,5646973)
e3:SetCondition(cm.con)
e3:SetTarget(cm.tg)
......
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