Commit 3becf8a2 authored by argon.sun's avatar argon.sun

fix

parent 1175f318
--炎王の急襲(test)
function c20000003.initial_effect(c)
--炎王の急襲
function c22993208.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c20000003.condition)
e1:SetCost(c20000003.cost)
e1:SetTarget(c20000003.target)
e1:SetOperation(c20000003.activate)
e1:SetCondition(c22993208.condition)
e1:SetCost(c22993208.cost)
e1:SetTarget(c22993208.target)
e1:SetOperation(c22993208.activate)
c:RegisterEffect(e1)
end
function c20000003.condition(e,tp,eg,ep,ev,re,r,rp)
function c22993208.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>0
and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0
end
function c20000003.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,20000003)==0 end
Duel.RegisterFlagEffect(tp,20000003,RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1)
function c22993208.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,22993208)==0 end
Duel.RegisterFlagEffect(tp,22993208,RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1)
end
function c20000003.spfilter(c,e,tp)
function c22993208.spfilter(c,e,tp)
return c:IsAttribute(ATTRIBUTE_FIRE) and c:IsRace(RACE_BEAST+RACE_BEASTWARRIOR+RACE_WINDBEAST) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c20000003.target(e,tp,eg,ep,ev,re,r,rp,chk)
function c22993208.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c20000003.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
and Duel.IsExistingMatchingCard(c22993208.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end
function c20000003.activate(e,tp,eg,ep,ev,re,r,rp)
function c22993208.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c20000003.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
local g=Duel.SelectMatchingCard(tp,c22993208.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
local tc=g:GetFirst()
local c=e:GetHandler()
if tc and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
......@@ -49,13 +49,13 @@ function c20000003.activate(e,tp,eg,ep,ev,re,r,rp)
e3:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e3:SetRange(LOCATION_MZONE)
e3:SetCode(EVENT_PHASE+PHASE_END)
e3:SetOperation(c20000003.desop)
e3:SetOperation(c22993208.desop)
e3:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
e3:SetCountLimit(1)
tc:RegisterEffect(e3)
end
Duel.SpecialSummonComplete()
end
function c20000003.desop(e,tp,eg,ep,ev,re,r,rp)
function c22993208.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(e:GetHandler(),REASON_EFFECT)
end
--炎王神獣 ガルドニクス(test)
function c20000000.initial_effect(c)
--炎王神獣 ガルドニクス
function c23015896.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetOperation(c20000000.spreg)
e1:SetOperation(c23015896.spreg)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(20000000,0))
e2:SetDescription(aux.Stringid(23015896,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e2:SetRange(LOCATION_GRAVE)
e2:SetCode(EVENT_PHASE+PHASE_STANDBY)
e2:SetCondition(c20000000.spcon)
e2:SetTarget(c20000000.sptg)
e2:SetOperation(c20000000.spop)
e2:SetCondition(c23015896.spcon)
e2:SetTarget(c23015896.sptg)
e2:SetOperation(c23015896.spop)
c:RegisterEffect(e2)
--destroy
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(20000000,1))
e3:SetDescription(aux.Stringid(23015896,1))
e3:SetCategory(CATEGORY_DESTROY)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetCondition(c20000000.descon)
e3:SetTarget(c20000000.destg)
e3:SetOperation(c20000000.desop)
e3:SetCondition(c23015896.descon)
e3:SetTarget(c23015896.destg)
e3:SetOperation(c23015896.desop)
c:RegisterEffect(e3)
--spsummon2
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(20000000,2))
e4:SetDescription(aux.Stringid(23015896,2))
e4:SetCategory(CATEGORY_SPECIAL_SUMMON)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_BATTLE_DESTROYED)
e4:SetCondition(c20000000.spcon2)
e4:SetTarget(c20000000.sptg2)
e4:SetOperation(c20000000.spop2)
e4:SetCondition(c23015896.spcon2)
e4:SetTarget(c23015896.sptg2)
e4:SetOperation(c23015896.spop2)
c:RegisterEffect(e4)
end
function c20000000.spreg(e,tp,eg,ep,ev,re,r,rp)
function c23015896.spreg(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if bit.band(r,0x41)==0x41 then
c:RegisterFlagEffect(20000000,RESET_EVENT+0x1fe0000,0,1)
c:RegisterFlagEffect(23015896,RESET_EVENT+0x1fe0000,0,1)
end
end
function c20000000.spcon(e,tp,eg,ep,ev,re,r,rp)
function c23015896.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:GetTurnID()~=Duel.GetTurnCount() and c:GetFlagEffect(20000000)>0
return c:GetTurnID()~=Duel.GetTurnCount() and c:GetFlagEffect(23015896)>0
end
function c20000000.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
function c23015896.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local c=e:GetHandler()
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
c:ResetFlagEffect(20000000)
c:ResetFlagEffect(23015896)
end
function c20000000.spop(e,tp,eg,ep,ev,re,r,rp)
function c23015896.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,1,tp,tp,false,false,POS_FACEUP)
end
end
function c20000000.descon(e,tp,eg,ep,ev,re,r,rp)
function c23015896.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
end
function c20000000.desfilter(c)
function c23015896.desfilter(c)
return c:IsDestructable()
end
function c20000000.destg(e,tp,eg,ep,ev,re,r,rp,chk)
function c23015896.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local g=Duel.GetMatchingGroup(c20000000.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,e:GetHandler())
local g=Duel.GetMatchingGroup(c23015896.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end
function c20000000.desop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c20000000.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,e:GetHandler())
function c23015896.desop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c23015896.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,e:GetHandler())
Duel.Destroy(g,REASON_EFFECT)
end
function c20000000.spcon2(e,tp,eg,ep,ev,re,r,rp)
function c23015896.spcon2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE)
end
function c20000000.spfilter(c,e,tp)
return c:IsSetCard(0x81) and c:GetCode()~=20000000 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
function c23015896.spfilter(c,e,tp)
return c:IsSetCard(0x81) and c:GetCode()~=23015896 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c20000000.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
function c23015896.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c20000000.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
and Duel.IsExistingMatchingCard(c23015896.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end
function c20000000.spop2(e,tp,eg,ep,ev,re,r,rp)
function c23015896.spop2(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c20000000.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
local g=Duel.SelectMatchingCard(tp,c23015896.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
......
--炎王炎環(test)
function c20000004.initial_effect(c)
--炎王炎環
function c59388357.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c20000004.cost)
e1:SetTarget(c20000004.target)
e1:SetOperation(c20000004.activate)
e1:SetCost(c59388357.cost)
e1:SetTarget(c59388357.target)
e1:SetOperation(c59388357.activate)
c:RegisterEffect(e1)
end
function c20000004.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,20000004)==0 end
Duel.RegisterFlagEffect(tp,20000004,RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1)
function c59388357.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,59388357)==0 end
Duel.RegisterFlagEffect(tp,59388357,RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1)
end
function c20000004.desfilter(c)
function c59388357.desfilter(c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_FIRE) and c:IsDestructable()
end
function c20000004.spfilter(c,e,tp)
function c59388357.spfilter(c,e,tp)
return c:IsAttribute(ATTRIBUTE_FIRE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c20000004.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c59388357.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and Duel.IsExistingTarget(c20000004.desfilter,tp,LOCATION_MZONE,0,1,nil)
and Duel.IsExistingTarget(c20000004.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
and Duel.IsExistingTarget(c59388357.desfilter,tp,LOCATION_MZONE,0,1,nil)
and Duel.IsExistingTarget(c59388357.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g1=Duel.SelectTarget(tp,c20000004.desfilter,tp,LOCATION_MZONE,0,1,1,nil)
local g1=Duel.SelectTarget(tp,c59388357.desfilter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g2=Duel.SelectTarget(tp,c20000004.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
local g2=Duel.SelectTarget(tp,c59388357.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g1,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g2,1,0,0)
e:SetLabelObject(g1:GetFirst())
end
function c20000004.activate(e,tp,eg,ep,ev,re,r,rp)
function c59388357.activate(e,tp,eg,ep,ev,re,r,rp)
local tc1,tc2=Duel.GetFirstTarget()
if tc1~=e:GetLabelObject() then tc1,tc2=tc2,tc1 end
if tc1:IsRelateToEffect(e) and Duel.Destroy(tc1,REASON_EFFECT)>0 and tc2:IsRelateToEffect(e) then
......
--炎王獣 バロン(test)
function c20000001.initial_effect(c)
--炎王獣 バロン
function c69000994.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(20000001,0))
e1:SetDescription(aux.Stringid(69000994,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetRange(LOCATION_HAND)
e1:SetCode(EVENT_DESTROYED)
e1:SetCondition(c20000001.spcon)
e1:SetTarget(c20000001.sptg)
e1:SetOperation(c20000001.spop)
e1:SetCondition(c69000994.spcon)
e1:SetTarget(c69000994.sptg)
e1:SetOperation(c69000994.spop)
c:RegisterEffect(e1)
--search
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_TO_GRAVE)
e2:SetOperation(c20000001.threg)
e2:SetOperation(c69000994.threg)
c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(20000001,1))
e3:SetDescription(aux.Stringid(69000994,1))
e3:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e3:SetRange(LOCATION_GRAVE)
e3:SetCode(EVENT_PHASE+PHASE_STANDBY)
e3:SetCondition(c20000001.thcon)
e3:SetTarget(c20000001.thtg)
e3:SetOperation(c20000001.thop)
e3:SetCondition(c69000994.thcon)
e3:SetTarget(c69000994.thtg)
e3:SetOperation(c69000994.thop)
c:RegisterEffect(e3)
end
function c20000001.cfilter(c,tp)
function c69000994.cfilter(c,tp)
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:GetPreviousControler()==tp
and c:IsReason(REASON_EFFECT) and c:IsSetCard(0x81)
end
function c20000001.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c20000001.cfilter,1,nil,tp)
function c69000994.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c69000994.cfilter,1,nil,tp)
end
function c20000001.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
function c69000994.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c20000001.spop(e,tp,eg,ep,ev,re,r,rp)
function c69000994.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
end
function c20000001.threg(e,tp,eg,ep,ev,re,r,rp)
function c69000994.threg(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if bit.band(r,0x41)==0x41 then
c:RegisterFlagEffect(20000001,RESET_EVENT+0x1fe0000,0,1)
c:RegisterFlagEffect(69000994,RESET_EVENT+0x1fe0000,0,1)
end
end
function c20000001.thcon(e,tp,eg,ep,ev,re,r,rp)
function c69000994.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:GetTurnID()~=Duel.GetTurnCount() and c:GetFlagEffect(20000001)>0
return c:GetTurnID()~=Duel.GetTurnCount() and c:GetFlagEffect(69000994)>0
end
function c20000001.thfilter(c,e,tp)
return c:IsSetCard(0x81) and c:GetCode()~=20000001 and c:IsAbleToHand()
function c69000994.thfilter(c,e,tp)
return c:IsSetCard(0x81) and c:GetCode()~=69000994 and c:IsAbleToHand()
end
function c20000001.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
function c69000994.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local c=e:GetHandler()
Duel.SetOperationInfo(0,CATEGORY_TOHAND,c,1,0,0)
c:ResetFlagEffect(20000001)
c:ResetFlagEffect(69000994)
end
function c20000001.thop(e,tp,eg,ep,ev,re,r,rp)
function c69000994.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c20000001.thfilter,tp,LOCATION_DECK,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,c69000994.thfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
......
--炎王獣 キリン(test)
function c20000002.initial_effect(c)
--炎王獣 キリン
function c96594609.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(20000002,0))
e1:SetDescription(aux.Stringid(96594609,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetRange(LOCATION_HAND)
e1:SetCode(EVENT_DESTROYED)
e1:SetCondition(c20000002.spcon)
e1:SetTarget(c20000002.sptg)
e1:SetOperation(c20000002.spop)
e1:SetCondition(c96594609.spcon)
e1:SetTarget(c96594609.sptg)
e1:SetOperation(c96594609.spop)
c:RegisterEffect(e1)
--
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(20000002,1))
e2:SetDescription(aux.Stringid(96594609,1))
e2:SetCategory(CATEGORY_TOGRAVE)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e2:SetCode(EVENT_TO_GRAVE)
e2:SetCondition(c20000002.tgcon)
e2:SetTarget(c20000002.tgtg)
e2:SetOperation(c20000002.tgop)
e2:SetCondition(c96594609.tgcon)
e2:SetTarget(c96594609.tgtg)
e2:SetOperation(c96594609.tgop)
c:RegisterEffect(e2)
end
function c20000002.cfilter(c,tp)
function c96594609.cfilter(c,tp)
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:GetPreviousControler()==tp
and c:IsReason(REASON_EFFECT) and c:IsSetCard(0x81)
end
function c20000002.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c20000002.cfilter,1,nil,tp)
function c96594609.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c96594609.cfilter,1,nil,tp)
end
function c20000002.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
function c96594609.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c20000002.spop(e,tp,eg,ep,ev,re,r,rp)
function c96594609.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
end
function c20000002.tgcon(e,tp,eg,ep,ev,re,r,rp)
function c96594609.tgcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_DESTROY)
end
function c20000002.tgfilter(c,e,tp)
function c96594609.tgfilter(c,e,tp)
return c:IsAttribute(ATTRIBUTE_FIRE) and c:IsAbleToGrave()
end
function c20000002.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
function c96594609.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(tgfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
end
function c20000002.tgop(e,tp,eg,ep,ev,re,r,rp)
function c96594609.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c20000002.tgfilter,tp,LOCATION_DECK,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,c96594609.tgfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT)
end
......
......@@ -27,13 +27,12 @@ function c96765646.activate(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)~=0 then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetOperation(c96765646.desop)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
e1:SetCountLimit(1)
tc:RegisterEffect(e1,true)
tc:RegisterEffect(e1)
end
end
function c96765646.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