Commit 080bd0b5 authored by argon.sun's avatar argon.sun

fix

parent 0ac58aca
--熱血指導王ジャイアントレーナー(test) --熱血指導王ジャイアントレーナー
function c20000005.initial_effect(c) function c30741334.initial_effect(c)
--xyz summon --xyz summon
aux.AddXyzProcedure(c,aux.XyzFilterFunction(c,8),3) aux.AddXyzProcedure(c,aux.XyzFilterFunction(c,8),3)
c:EnableReviveLimit() c:EnableReviveLimit()
--draw --draw
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DRAW+CATEGORY_DAMAGE) e1:SetCategory(CATEGORY_DRAW+CATEGORY_DAMAGE)
e1:SetDescription(aux.Stringid(20000005,0)) e1:SetDescription(aux.Stringid(30741334,0))
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCost(c20000005.cost) e1:SetCost(c30741334.cost)
e1:SetTarget(c20000005.target) e1:SetTarget(c30741334.target)
e1:SetOperation(c20000005.operation) e1:SetOperation(c30741334.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c20000005.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c30741334.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCurrentPhase()==PHASE_MAIN1 and Duel.GetFlagEffect(tp,20000005)<3 if chk==0 then return Duel.GetCurrentPhase()==PHASE_MAIN1 and Duel.GetFlagEffect(tp,30741334)<3
and e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end and e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
...@@ -25,13 +25,13 @@ function c20000005.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -25,13 +25,13 @@ function c20000005.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetTargetRange(1,0) e1:SetTargetRange(1,0)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
Duel.RegisterFlagEffect(tp,20000005,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,30741334,RESET_PHASE+PHASE_END,0,1)
end end
function c20000005.target(e,tp,eg,ep,ev,re,r,rp,chk) function c30741334.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
end end
function c20000005.operation(e,tp,eg,ep,ev,re,r,rp,chk) function c30741334.operation(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=Duel.Draw(tp,1,REASON_EFFECT) local ct=Duel.Draw(tp,1,REASON_EFFECT)
if ct==0 then return end if ct==0 then return end
local dc=Duel.GetOperatedGroup():GetFirst() local dc=Duel.GetOperatedGroup():GetFirst()
......
--立炎星-トウケイ(test) --立炎星-トウケイ
function c20000008.initial_effect(c) function c30929786.initial_effect(c)
--search --search
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(20000008,0)) e1:SetDescription(aux.Stringid(30929786,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CHAIN_UNIQUE) e1:SetProperty(EFFECT_FLAG_CHAIN_UNIQUE)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(c20000008.thcon) e1:SetCondition(c30929786.thcon)
e1:SetCost(c20000008.thcost) e1:SetCost(c30929786.thcost)
e1:SetTarget(c20000008.thtg) e1:SetTarget(c30929786.thtg)
e1:SetOperation(c20000008.thop) e1:SetOperation(c30929786.thop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--set --set
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(20000008,1)) e2:SetDescription(aux.Stringid(30929786,1))
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1) e2:SetCountLimit(1)
e2:SetCost(c20000008.setcost) e2:SetCost(c30929786.setcost)
e2:SetTarget(c20000008.settg) e2:SetTarget(c30929786.settg)
e2:SetOperation(c20000008.setop) e2:SetOperation(c30929786.setop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c20000008.thcon(e,tp,eg,ep,ev,re,r,rp) function c30929786.thcon(e,tp,eg,ep,ev,re,r,rp)
return re:GetHandler():IsSetCard(0x79) and re:GetHandler():IsType(TYPE_MONSTER) return re:GetHandler():IsSetCard(0x79) and re:GetHandler():IsType(TYPE_MONSTER)
end end
function c20000008.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c30929786.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,20000008)==0 end if chk==0 then return Duel.GetFlagEffect(tp,30929786)==0 end
Duel.RegisterFlagEffect(tp,20000008,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,30929786,RESET_PHASE+PHASE_END,0,1)
end end
function c20000008.thfilter(c) function c30929786.thfilter(c)
return c:IsSetCard(0x79) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x79) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c20000008.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c30929786.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c20000008.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c30929786.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function c20000008.thop(e,tp,eg,ep,ev,re,r,rp) function c30929786.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c20000008.thfilter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c30929786.thfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
function c20000008.cfilter(c) function c30929786.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x7c) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToGraveAsCost() return c:IsFaceup() and c:IsSetCard(0x7c) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToGraveAsCost()
end end
function c20000008.setcost(e,tp,eg,ep,ev,re,r,rp,chk) function c30929786.setcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c20000008.cfilter,tp,LOCATION_ONFIELD,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c30929786.cfilter,tp,LOCATION_ONFIELD,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c20000008.cfilter,tp,LOCATION_ONFIELD,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c30929786.cfilter,tp,LOCATION_ONFIELD,0,1,1,nil)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
end end
function c20000008.filter(c) function c30929786.filter(c)
return c:IsSetCard(0x7c) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable(true) return c:IsSetCard(0x7c) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable(true)
end end
function c20000008.settg(e,tp,eg,ep,ev,re,r,rp,chk) function c30929786.settg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>-1 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>-1
and Duel.IsExistingMatchingCard(c20000008.filter,tp,LOCATION_DECK,0,1,nil) end and Duel.IsExistingMatchingCard(c30929786.filter,tp,LOCATION_DECK,0,1,nil) end
end end
function c20000008.setop(e,tp,eg,ep,ev,re,r,rp) function c30929786.setop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local g=Duel.SelectMatchingCard(tp,c20000008.filter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c30929786.filter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SSet(tp,g:GetFirst()) Duel.SSet(tp,g:GetFirst())
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
......
--熱血獣士ウルフバーク(test) --熱血獣士ウルフバーク
function c20000007.initial_effect(c) function c3534077.initial_effect(c)
--spsummon --spsummon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(20000007,0)) e1:SetDescription(aux.Stringid(3534077,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCost(c20000007.spcost) e1:SetCost(c3534077.spcost)
e1:SetTarget(c20000007.sptg) e1:SetTarget(c3534077.sptg)
e1:SetOperation(c20000007.spop) e1:SetOperation(c3534077.spop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c20000007.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c3534077.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,20000007)==0 end if chk==0 then return Duel.GetFlagEffect(tp,3534077)==0 end
Duel.RegisterFlagEffect(tp,20000007,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,3534077,RESET_PHASE+PHASE_END,0,1)
end end
function c20000007.filter(c,e,tp) function c3534077.filter(c,e,tp)
return c:IsRace(RACE_BEASTWARRIOR) and c:IsAttribute(ATTRIBUTE_FIRE) and c:GetLevel()==4 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_BEASTWARRIOR) and c:IsAttribute(ATTRIBUTE_FIRE) and c:GetLevel()==4 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c20000007.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c3534077.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c20000007.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c3534077.filter(chkc,e,tp) end
if chk==0 then return Duel.IsExistingTarget(c20000007.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) if chk==0 then return Duel.IsExistingTarget(c3534077.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c20000007.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) local g=Duel.SelectTarget(tp,c3534077.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end end
function c20000007.spop(e,tp,eg,ep,ev,re,r,rp) function c3534077.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP_DEFENCE) then if tc:IsRelateToEffect(e) and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP_DEFENCE) then
......
--炎王獣 ヤクシャ(test) --炎王獣 ヤクシャ
function c20000009.initial_effect(c) function c66413481.initial_effect(c)
--spsummon --spsummon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(20000009,0)) e1:SetDescription(aux.Stringid(66413481,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCode(EVENT_DESTROYED) e1:SetCode(EVENT_DESTROYED)
e1:SetCondition(c20000009.spcon) e1:SetCondition(c66413481.spcon)
e1:SetTarget(c20000009.sptg) e1:SetTarget(c66413481.sptg)
e1:SetOperation(c20000009.spop) e1:SetOperation(c66413481.spop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--destroy --destroy
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(20000009,1)) e2:SetDescription(aux.Stringid(66413481,1))
e2:SetCategory(CATEGORY_DESTROY) e2:SetCategory(CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY+EFFECT_FLAG_CHAIN_UNIQUE) e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY+EFFECT_FLAG_CHAIN_UNIQUE)
e2:SetCode(EVENT_TO_GRAVE) e2:SetCode(EVENT_TO_GRAVE)
e2:SetCondition(c20000009.descon) e2:SetCondition(c66413481.descon)
e2:SetCost(c20000009.descost) e2:SetCost(c66413481.descost)
e2:SetTarget(c20000009.destg) e2:SetTarget(c66413481.destg)
e2:SetOperation(c20000009.desop) e2:SetOperation(c66413481.desop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c20000009.cfilter(c,tp) function c66413481.cfilter(c,tp)
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:GetPreviousControler()==tp return c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:GetPreviousControler()==tp
and c:IsReason(REASON_EFFECT) and c:IsSetCard(0x81) and c:IsReason(REASON_EFFECT) and c:IsSetCard(0x81)
end end
function c20000009.spcon(e,tp,eg,ep,ev,re,r,rp) function c66413481.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c20000009.cfilter,1,nil,tp) return eg:IsExists(c66413481.cfilter,1,nil,tp)
end end
function c20000009.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c66413481.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return e:GetHandler():IsRelateToEffect(e)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c20000009.spop(e,tp,eg,ep,ev,re,r,rp) function c66413481.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then if c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end end
end end
function c20000009.descon(e,tp,eg,ep,ev,re,r,rp) function c66413481.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_DESTROY) return e:GetHandler():IsReason(REASON_DESTROY)
end end
function c20000009.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c66413481.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,20000009)==0 end if chk==0 then return Duel.GetFlagEffect(tp,66413481)==0 end
Duel.RegisterFlagEffect(tp,20000009,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,66413481,RESET_PHASE+PHASE_END,0,1)
end end
function c20000009.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c66413481.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDestructable,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDestructable,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,nil) end
local g=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_ONFIELD+LOCATION_HAND,0,nil) local g=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_ONFIELD+LOCATION_HAND,0,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end end
function c20000009.desop(e,tp,eg,ep,ev,re,r,rp) function c66413481.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,Card.IsDestructable,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,Card.IsDestructable,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
......
--熱血獣王ベアーマン(test) --熱血獣王ベアーマン
function c20000006.initial_effect(c) function c67136033.initial_effect(c)
--summon with no tribute --summon with no tribute
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(20000006,0)) e1:SetDescription(aux.Stringid(67136033,0))
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SUMMON_PROC) e1:SetCode(EFFECT_SUMMON_PROC)
e1:SetCondition(c20000006.ntcon) e1:SetCondition(c67136033.ntcon)
e1:SetOperation(c20000006.ntop) e1:SetOperation(c67136033.ntop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--lvchange --lvchange
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(20000006,1)) e2:SetDescription(aux.Stringid(67136033,1))
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1) e2:SetCountLimit(1)
e2:SetTarget(c20000006.lvtg) e2:SetTarget(c67136033.lvtg)
e2:SetOperation(c20000006.lvop) e2:SetOperation(c67136033.lvop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--xyz limit --xyz limit
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE) e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE) e3:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE)
e3:SetCode(EFFECT_CANNOT_BE_XYZ_MATERIAL) e3:SetCode(EFFECT_CANNOT_BE_XYZ_MATERIAL)
e3:SetValue(c20000006.xyzlimit) e3:SetValue(c67136033.xyzlimit)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c20000006.ntcon(e,c) function c67136033.ntcon(e,c)
if c==nil then return true end if c==nil then return true end
return c:GetLevel()>4 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 return c:GetLevel()>4 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end end
function c20000006.ntop(e,tp,eg,ep,ev,re,r,rp,c) function c67136033.ntop(e,tp,eg,ep,ev,re,r,rp,c)
--change base attack --change base attack
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
...@@ -41,15 +41,15 @@ function c20000006.ntop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -41,15 +41,15 @@ function c20000006.ntop(e,tp,eg,ep,ev,re,r,rp,c)
e1:SetValue(1300) e1:SetValue(1300)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c20000006.filter(c) function c67136033.filter(c)
return c:IsRace(RACE_BEASTWARRIOR) and c:GetLevel()==4 return c:IsRace(RACE_BEASTWARRIOR) and c:GetLevel()==4
end end
function c20000006.lvtg(e,tp,eg,ep,ev,re,r,rp,chk) function c67136033.lvtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c20000006.filter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c67136033.filter,tp,LOCATION_MZONE,0,1,nil) end
end end
function c20000006.lvop(e,tp,eg,ep,ev,re,r,rp) function c67136033.lvop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local g=Duel.GetMatchingGroup(c20000006.filter,tp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(c67136033.filter,tp,LOCATION_MZONE,0,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -62,7 +62,7 @@ function c20000006.lvop(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,7 +62,7 @@ function c20000006.lvop(e,tp,eg,ep,ev,re,r,rp)
tc=g:GetNext() tc=g:GetNext()
end end
end end
function c20000006.xyzlimit(e,c) function c67136033.xyzlimit(e,c)
if not c then return false end if not c then return false end
return not c:IsAttribute(ATTRIBUTE_FIRE) or not c:IsRace(RACE_WARRIOR) return not c:IsAttribute(ATTRIBUTE_FIRE) or not c:IsRace(RACE_WARRIOR)
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