Commit c42d7536 authored by Tachibana's avatar Tachibana

nmbd

parent fd8f5c4f
--迁越的魔女 托阿敏
function c12045017.initial_effect(c)
--pendulum summon
aux.EnablePendulumAttribute(c)
--tohand
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DRAW+CATEGORY_DESTROY)
......@@ -23,6 +25,7 @@ function c12045017.initial_effect(c)
e1:SetCategory(CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCountLimit(1,12045018)
e1:SetTarget(c12045017.rettg)
e1:SetOperation(c12045017.retop)
c:RegisterEffect(e1)
......@@ -32,7 +35,7 @@ function c12045017.initial_effect(c)
e1:SetCode(EVENT_CHAINING)
e1:SetProperty(EFFECT_FLAG_NO_TURN_RESET)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCountLimit(1,12045017)
e1:SetCondition(c12045017.discon)
e1:SetOperation(c12045017.disop)
c:RegisterEffect(e1)
......
......@@ -70,7 +70,7 @@ function c12051020.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c12051020.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToGrave,tp,LOCATION_DECK,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,c12051020.tgfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT)
end
......
......@@ -18,8 +18,10 @@ function c12051021.initial_effect(c)
c:RegisterEffect(e3)
local e31=Effect.CreateEffect(c)
e31:SetCategory(CATEGORY_SPECIAL_SUMMON)
e31:SetType(EFFECT_TYPE_ACTIVATE)
e31:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e31:SetRange(LOCATION_MZONE)
e31:SetCode(EVENT_SPSUMMON_SUCCESS)
e31:SetProperty(EFFECT_FLAG_DELAY)
e31:SetCountLimit(1,12051023)
e31:SetCondition(c12051021.rmcon)
e31:SetTarget(c12051021.target2)
......@@ -49,7 +51,7 @@ function c12051021.efilter(e,te)
return te:GetOwner()~=e:GetOwner()
end
function c12051021.rmcon(e,tp,eg,ep,ev,re,r,rp)
return tp~=ep and Duel.GetCurrentChain()==0
return tp~=ep
end
function c12051021.filters(c,e,tp)
return c:IsRace(RACE_WINDBEAST) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......@@ -92,7 +94,7 @@ function c12051021.thfilter(c)
end
function c12051021.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local ct=Duel.GetMatchingGroupCount(c12051021.thfilter1,tp,LOCATION_MZONE,0,nil)
if chk==0 then return ct>0 and Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_ONFIELD,0,1,nil,e,tp) end
if chk==0 then return ct>0 and Duel.IsExistingMatchingCard(c12051021.thfilter,tp,LOCATION_ONFIELD,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end
function c12051021.desop(e,tp,eg,ep,ev,re,r,rp)
......
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