Commit a378d415 authored by VanillaSalt's avatar VanillaSalt

fix

parent 3246e785
...@@ -34,20 +34,20 @@ function c17775525.initial_effect(c) ...@@ -34,20 +34,20 @@ function c17775525.initial_effect(c)
end end
function c17775525.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c17775525.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
local rt=Duel.GetTargetCount(aux.TRUE,tp,0,LOCATION_ONFIELD,nil) local rt=Duel.GetTargetCount(nil,tp,0,LOCATION_ONFIELD,nil)
if rt>2 then rt=2 end if rt>2 then rt=2 end
local cg=Duel.DiscardHand(tp,Card.IsDiscardable,1,rt,REASON_COST+REASON_DISCARD,nil) local cg=Duel.DiscardHand(tp,Card.IsDiscardable,1,rt,REASON_COST+REASON_DISCARD,nil)
e:SetLabel(cg) e:SetLabel(cg)
end end
function c17775525.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c17775525.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) end if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) end
if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingTarget(nil,tp,0,LOCATION_ONFIELD,1,nil) end
local ct=e:GetLabel() local ct=e:GetLabel()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local eg=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,ct,ct,nil) local g=Duel.SelectTarget(tp,nil,tp,0,LOCATION_ONFIELD,ct,ct,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,ct,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,ct,0,0)
end end
function c17775525.operation(e,tp,eg,ep,ev,re,r,rp,chk) function c17775525.operation(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local rg=tg:Filter(Card.IsRelateToEffect,nil,e) local rg=tg:Filter(Card.IsRelateToEffect,nil,e)
if rg:GetCount()>0 then if rg:GetCount()>0 then
......
...@@ -102,7 +102,7 @@ function c18386170.fscon(e,g,gc,chkf) ...@@ -102,7 +102,7 @@ function c18386170.fscon(e,g,gc,chkf)
local tp=c:GetControler() local tp=c:GetControler()
local mg=g:Filter(c18386170.ffilter,nil,c) local mg=g:Filter(c18386170.ffilter,nil,c)
local sg=Group.CreateGroup() local sg=Group.CreateGroup()
if gc then return c18386170.ffilter(gc,c) and c18386170.fselect(gc,mg,sg,tp,fc) end if gc then return c18386170.ffilter(gc,c) and c18386170.fselect(gc,mg,sg,tp,c) end
return mg:IsExists(c18386170.fselect,1,sg,mg,sg,tp,c) return mg:IsExists(c18386170.fselect,1,sg,mg,sg,tp,c)
end end
function c18386170.fsop(e,tp,eg,ep,ev,re,r,rp,gc,chkf) function c18386170.fsop(e,tp,eg,ep,ev,re,r,rp,gc,chkf)
......
...@@ -88,9 +88,9 @@ end ...@@ -88,9 +88,9 @@ end
function c18897163.xyzop(e,tp,eg,ep,ev,re,r,rp) function c18897163.xyzop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsFacedown() or not c:IsRelateToEffect(e) then return end if c:IsFacedown() or not c:IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local g=Duel.GetMatchingGroup(c18897163.xyzfilter,tp,LOCATION_EXTRA,0,nil) local g=Duel.GetMatchingGroup(c18897163.xyzfilter,tp,LOCATION_EXTRA,0,nil)
if g:GetCount()>=1 then if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local og=g:Select(tp,1,1,nil) local og=g:Select(tp,1,1,nil)
Duel.Overlay(c,og) Duel.Overlay(c,og)
end end
......
...@@ -31,7 +31,7 @@ function c28929131.initial_effect(c) ...@@ -31,7 +31,7 @@ function c28929131.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
--to deck --to deck
local e6=Effect.CreateEffect(c) local e6=Effect.CreateEffect(c)
e6:SetDescription(aux.Stringid(92435533,2)) e6:SetDescription(aux.Stringid(28929131,1))
e6:SetCategory(CATEGORY_TODECK) e6:SetCategory(CATEGORY_TODECK)
e6:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e6:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e6:SetCode(EVENT_PHASE+PHASE_BATTLE) e6:SetCode(EVENT_PHASE+PHASE_BATTLE)
...@@ -43,7 +43,7 @@ function c28929131.initial_effect(c) ...@@ -43,7 +43,7 @@ function c28929131.initial_effect(c)
c:RegisterEffect(e6) c:RegisterEffect(e6)
--draw --draw
local e7=Effect.CreateEffect(c) local e7=Effect.CreateEffect(c)
e7:SetDescription(aux.Stringid(42566602,1)) e7:SetDescription(aux.Stringid(28929131,2))
e7:SetCategory(CATEGORY_DRAW) e7:SetCategory(CATEGORY_DRAW)
e7:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e7:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e7:SetProperty(EFFECT_FLAG_DELAY) e7:SetProperty(EFFECT_FLAG_DELAY)
......
...@@ -38,7 +38,7 @@ function c30864377.initial_effect(c) ...@@ -38,7 +38,7 @@ function c30864377.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--special summon --special summon
local e6=Effect.CreateEffect(c) local e6=Effect.CreateEffect(c)
e6:SetDescription(aux.Stringid(3779662,4)) e6:SetDescription(aux.Stringid(30864377,4))
e6:SetCategory(CATEGORY_SPECIAL_SUMMON) e6:SetCategory(CATEGORY_SPECIAL_SUMMON)
e6:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e6:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e6:SetCode(EVENT_PHASE+PHASE_BATTLE) e6:SetCode(EVENT_PHASE+PHASE_BATTLE)
...@@ -117,7 +117,8 @@ function c30864377.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -117,7 +117,8 @@ function c30864377.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function c30864377.spop(e,tp,eg,ep,ev,re,r,rp) function c30864377.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<1 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c30864377.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c30864377.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
......
...@@ -20,6 +20,7 @@ function c44891812.initial_effect(c) ...@@ -20,6 +20,7 @@ function c44891812.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_ATTACK_ANNOUNCE) e2:SetCode(EVENT_ATTACK_ANNOUNCE)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCondition(c44891812.spcon) e2:SetCondition(c44891812.spcon)
e2:SetCost(c44891812.spcost) e2:SetCost(c44891812.spcost)
e2:SetTarget(c44891812.sptg) e2:SetTarget(c44891812.sptg)
......
...@@ -97,6 +97,18 @@ function c45014450.copyop(e,tp,eg,ep,ev,re,r,rp) ...@@ -97,6 +97,18 @@ function c45014450.copyop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1) c:RegisterEffect(e1)
if not tc:IsType(TYPE_TRAPMONSTER) then if not tc:IsType(TYPE_TRAPMONSTER) then
local cid=c:CopyEffect(code,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,1) local cid=c:CopyEffect(code,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,1)
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(45014450,2))
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_PHASE+PHASE_END)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e3:SetCountLimit(1)
e3:SetRange(LOCATION_MZONE)
e3:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
e3:SetLabelObject(e1)
e3:SetLabel(cid)
e3:SetOperation(c45014450.rstop)
c:RegisterEffect(e3)
end end
local atk=tc:GetAttack() local atk=tc:GetAttack()
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
...@@ -105,18 +117,6 @@ function c45014450.copyop(e,tp,eg,ep,ev,re,r,rp) ...@@ -105,18 +117,6 @@ function c45014450.copyop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(atk) e2:SetValue(atk)
e2:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) e2:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(45014450,2))
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_PHASE+PHASE_END)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e3:SetCountLimit(1)
e3:SetRange(LOCATION_MZONE)
e3:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
e3:SetLabelObject(e1)
e3:SetLabel(cid)
e3:SetOperation(c45014450.rstop)
c:RegisterEffect(e3)
end end
end end
function c45014450.rstop(e,tp,eg,ep,ev,re,r,rp) function c45014450.rstop(e,tp,eg,ep,ev,re,r,rp)
......
--剣闘獣ノクシウス --剣闘獣ノクシウス
function c67385964.initial_effect(c) function c67385964.initial_effect(c)
--spsummon --spsummon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(67385964,0)) e1:SetDescription(aux.Stringid(67385964,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:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCondition(c67385964.hspcon) e1:SetCondition(c67385964.hspcon)
e1:SetTarget(c67385964.hsptg) e1:SetTarget(c67385964.hsptg)
e1:SetOperation(c67385964.hspop) e1:SetOperation(c67385964.hspop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--grave --grave
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(67385964,1)) e2:SetDescription(aux.Stringid(67385964,1))
e2:SetCategory(CATEGORY_TOGRAVE) e2:SetCategory(CATEGORY_TOGRAVE)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCondition(c67385964.tgcon) e2:SetCondition(c67385964.tgcon)
e2:SetTarget(c67385964.tgtg) e2:SetTarget(c67385964.tgtg)
e2:SetOperation(c67385964.tgop) e2:SetOperation(c67385964.tgop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--special summon --special summon
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(67385964,2)) e3:SetDescription(aux.Stringid(67385964,2))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON) e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_PHASE+PHASE_BATTLE) e3:SetCode(EVENT_PHASE+PHASE_BATTLE)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCondition(c67385964.spcon) e3:SetCondition(c67385964.spcon)
e3:SetCost(c67385964.spcost) e3:SetCost(c67385964.spcost)
e3:SetTarget(c67385964.sptg) e3:SetTarget(c67385964.sptg)
e3:SetOperation(c67385964.spop) e3:SetOperation(c67385964.spop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c67385964.hspcon(e,tp,eg,ep,ev,re,r,rp) function c67385964.hspcon(e,tp,eg,ep,ev,re,r,rp)
local at=Duel.GetAttacker() local at=Duel.GetAttacker()
return at:GetControler()~=tp and Duel.GetAttackTarget()==nil return at:GetControler()~=tp and Duel.GetAttackTarget()==nil
end end
function c67385964.hsptg(e,tp,eg,ep,ev,re,r,rp,chk) function c67385964.hsptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and c:IsCanBeSpecialSummoned(e,104,tp,false,false) end and c:IsCanBeSpecialSummoned(e,104,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
end end
function c67385964.hspop(e,tp,eg,ep,ev,re,r,rp) function c67385964.hspop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,104,tp,tp,false,false,POS_FACEUP)~=0 then if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,104,tp,tp,false,false,POS_FACEUP)~=0 then
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
if a:IsAttackable() and not a:IsImmuneToEffect(e) then if a:IsAttackable() and not a:IsImmuneToEffect(e) then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetValue(1) e1:SetValue(1)
e1:SetReset(RESET_PHASE+PHASE_DAMAGE) e1:SetReset(RESET_PHASE+PHASE_DAMAGE)
c:RegisterEffect(e1) c:RegisterEffect(e1)
Duel.CalculateDamage(a,c) Duel.CalculateDamage(a,c)
end end
end end
end end
function c67385964.tgcon(e,tp,eg,ep,ev,re,r,rp) function c67385964.tgcon(e,tp,eg,ep,ev,re,r,rp)
local st=e:GetHandler():GetSummonType() local st=e:GetHandler():GetSummonType()
return st>=(SUMMON_TYPE_SPECIAL+100) and st<(SUMMON_TYPE_SPECIAL+150) return st>=(SUMMON_TYPE_SPECIAL+100) and st<(SUMMON_TYPE_SPECIAL+150)
end end
function c67385964.tgfilter(c) function c67385964.tgfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x19) and c:IsAbleToGrave() return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x19) and c:IsAbleToGrave()
end end
function c67385964.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function c67385964.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c67385964.tgfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c67385964.tgfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
end end
function c67385964.tgop(e,tp,eg,ep,ev,re,r,rp) function c67385964.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c67385964.tgfilter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c67385964.tgfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
end end
end end
function c67385964.spcon(e,tp,eg,ep,ev,re,r,rp) function c67385964.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetBattledGroupCount()>0 return e:GetHandler():GetBattledGroupCount()>0
end end
function c67385964.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c67385964.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAbleToDeckAsCost() end if chk==0 then return c:IsAbleToDeckAsCost() end
Duel.SendtoDeck(c,nil,2,REASON_COST) Duel.SendtoDeck(c,nil,2,REASON_COST)
end end
function c67385964.filter(c,e,tp) function c67385964.filter(c,e,tp)
return not c:IsCode(67385964) and c:IsSetCard(0x19) and c:IsCanBeSpecialSummoned(e,104,tp,false,false) return not c:IsCode(67385964) and c:IsSetCard(0x19) and c:IsCanBeSpecialSummoned(e,104,tp,false,false)
end end
function c67385964.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c67385964.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and Duel.IsExistingMatchingCard(c67385964.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c67385964.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function c67385964.spop(e,tp,eg,ep,ev,re,r,rp) function c67385964.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c67385964.filter,tp,LOCATION_DECK,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c67385964.filter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.SpecialSummon(tc,104,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,104,tp,tp,false,false,POS_FACEUP)
tc:RegisterFlagEffect(tc:GetOriginalCode(),RESET_EVENT+0x1ff0000,0,0) tc:RegisterFlagEffect(tc:GetOriginalCode(),RESET_EVENT+0x1ff0000,0,0)
end end
end end
...@@ -32,7 +32,7 @@ function c68507541.initial_effect(c) ...@@ -32,7 +32,7 @@ function c68507541.initial_effect(c)
e3:SetValue(c68507541.atktg) e3:SetValue(c68507541.atktg)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c68507541.atkcon1(e) function c68507541.atkcon1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler()==Duel.GetAttacker() return e:GetHandler()==Duel.GetAttacker()
end end
function c68507541.atkop1(e,tp,eg,ep,ev,re,r,rp) function c68507541.atkop1(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -19,7 +19,7 @@ function c71386411.initial_effect(c) ...@@ -19,7 +19,7 @@ function c71386411.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,71386411+100) e2:SetCountLimit(1,71386412)
e2:SetCondition(c71386411.spcon) e2:SetCondition(c71386411.spcon)
e2:SetTarget(c71386411.sptg) e2:SetTarget(c71386411.sptg)
e2:SetOperation(c71386411.spop) e2:SetOperation(c71386411.spop)
...@@ -96,13 +96,12 @@ function c71386411.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -96,13 +96,12 @@ function c71386411.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsFacedown() or not tc:IsRelateToEffect(e) or tc:IsImmuneToEffect(e) or tc:GetLevel()<2 then return end if tc:IsFacedown() or not tc:IsRelateToEffect(e) or tc:IsImmuneToEffect(e) or tc:GetLevel()<2 then return end
local c=e:GetHandler() local e2=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE)
e1:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_UPDATE_LEVEL)
e1:SetCode(EFFECT_UPDATE_LEVEL) e2:SetReset(RESET_EVENT+0x1fe0000)
e1:SetReset(RESET_EVENT+0x1fe0000) e2:SetValue(-1)
e1:SetValue(-1) tc:RegisterEffect(e2)
tc:RegisterEffect(e1)
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
......
...@@ -37,7 +37,7 @@ function c78229193.atkoperation(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,7 +37,7 @@ function c78229193.atkoperation(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:IsFaceup() and tc:IsRelateToEffect(e) then if tc:IsFaceup() and tc:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK_FINAL) e1:SetCode(EFFECT_SET_ATTACK_FINAL)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
......
...@@ -56,13 +56,13 @@ function c90590303.mtop(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,13 +56,13 @@ function c90590303.mtop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(e:GetHandler(),REASON_COST) Duel.Destroy(e:GetHandler(),REASON_COST)
end end
end end
function c90590303.tgcon(e,tp,eg,ep,ev,re,r,rp) function c90590303.tgcon(e)
return e:GetHandler():IsAttackPos() return e:GetHandler():IsAttackPos()
end end
function c90590303.indval(e,re,tp) function c90590303.indval(e,re,tp)
return tp~=e:GetHandlerPlayer() return tp~=e:GetHandlerPlayer()
end end
function c90590303.poscon(e,tp,eg,ep,ev,re,r,rp) function c90590303.poscon(e)
return e:GetHandler():IsDefensePos() return e:GetHandler():IsDefensePos()
end end
function c90590303.postg(e,c) function c90590303.postg(e,c)
......
...@@ -92,7 +92,7 @@ function c95474755.dktg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -92,7 +92,7 @@ function c95474755.dktg(e,tp,eg,ep,ev,re,r,rp,chk)
local tg=Duel.GetDecktopGroup(1-tp,ct) local tg=Duel.GetDecktopGroup(1-tp,ct)
if chk==0 then return ct>0 if chk==0 then return ct>0
and tg:FilterCount(Card.IsAbleToRemove,nil)==ct end and tg:FilterCount(Card.IsAbleToRemove,nil)==ct end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,n,0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,ct,1-tp,LOCATION_DECK)
end end
function c95474755.dkop(e,tp,eg,ep,ev,re,r,rp) function c95474755.dkop(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetMatchingGroupCount(c95474755.dkfilter,tp,0,LOCATION_REMOVED,nil) local ct=Duel.GetMatchingGroupCount(c95474755.dkfilter,tp,0,LOCATION_REMOVED,nil)
......
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