Commit 86ecad15 authored by VanillaSalt's avatar VanillaSalt

fix

parent 6db9cdf8
...@@ -45,7 +45,7 @@ function c11493868.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +45,7 @@ function c11493868.atkop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetReset(RESET_EVENT+0x1ff0000+RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN) e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN)
e1:SetValue(800) e1:SetValue(800)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
function c12615446.initial_effect(c) function c12615446.initial_effect(c)
--xyz summon --xyz summon
aux.AddXyzProcedure(c,c12615446.matfilter,3,2,nil,nil,5) aux.AddXyzProcedure(c,c12615446.matfilter,3,2,nil,nil,5)
c:EnableReviveLimit()
--Position+Negate --Position+Negate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(12615446,0)) e1:SetDescription(aux.Stringid(12615446,0))
...@@ -19,7 +20,7 @@ function c12615446.initial_effect(c) ...@@ -19,7 +20,7 @@ function c12615446.initial_effect(c)
--Attach --Attach
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(12615446,1)) e2:SetDescription(aux.Stringid(12615446,1))
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_BATTLE_DESTROYING) e2:SetCode(EVENT_BATTLE_DESTROYING)
e2:SetCountLimit(1) e2:SetCountLimit(1)
e2:SetCondition(c12615446.xyzcon) e2:SetCondition(c12615446.xyzcon)
......
...@@ -5,7 +5,7 @@ function c19462747.initial_effect(c) ...@@ -5,7 +5,7 @@ function c19462747.initial_effect(c)
e1:SetDescription(aux.Stringid(19462747,0)) e1:SetDescription(aux.Stringid(19462747,0))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCountLimit(1,19462747) e1:SetCountLimit(1,19462747)
e1:SetTarget(c19462747.target) e1:SetTarget(c19462747.target)
e1:SetOperation(c19462747.operation) e1:SetOperation(c19462747.operation)
...@@ -35,7 +35,7 @@ function c19462747.filter(c) ...@@ -35,7 +35,7 @@ function c19462747.filter(c)
return c:IsFaceup() and c:GetLevel()>0 and c:IsSetCard(0x33) return c:IsFaceup() and c:GetLevel()>0 and c:IsSetCard(0x33)
end end
function c19462747.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c19462747.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c19462747.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c19462747.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c19462747.filter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(c19462747.filter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c19462747.filter,tp,LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectTarget(tp,c19462747.filter,tp,LOCATION_MZONE,0,1,1,nil)
......
...@@ -19,7 +19,6 @@ function c23160024.initial_effect(c) ...@@ -19,7 +19,6 @@ function c23160024.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--draw --draw
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetCategory(CATEGORY_DRAW)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e4:SetRange(LOCATION_FZONE) e4:SetRange(LOCATION_FZONE)
e4:SetCode(EVENT_RELEASE) e4:SetCode(EVENT_RELEASE)
...@@ -39,7 +38,7 @@ function c23160024.initial_effect(c) ...@@ -39,7 +38,7 @@ function c23160024.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c23160024.cfilter(c,tp) function c23160024.cfilter(c,tp)
return c:IsSetCard(0xe0) and c:IsReason(REASON_RELEASE) and c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousControler()==tp return c:IsPreviousSetCard(0xe0) and c:IsReason(REASON_RELEASE) and c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousControler()==tp
end end
function c23160024.drcon(e,tp,eg,ep,ev,re,r,rp) function c23160024.drcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c23160024.cfilter,1,nil,tp) return eg:IsExists(c23160024.cfilter,1,nil,tp)
......
...@@ -71,7 +71,7 @@ function c23338098.spfilter(c,e,tp) ...@@ -71,7 +71,7 @@ function c23338098.spfilter(c,e,tp)
return c:IsType(TYPE_SYNCHRO) and c:IsRace(RACE_WINDBEAST) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and not c:IsCode(23338098) return c:IsType(TYPE_SYNCHRO) and c:IsRace(RACE_WINDBEAST) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and not c:IsCode(23338098)
end end
function c23338098.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c23338098.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and c23338098.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c23338098.spfilter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c23338098.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingTarget(c23338098.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
......
...@@ -69,6 +69,7 @@ function c32465539.efop(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,6 +69,7 @@ function c32465539.efop(e,tp,eg,ep,ev,re,r,rp)
e1:SetTargetRange(0,1) e1:SetTargetRange(0,1)
e1:SetValue(c32465539.aclimit) e1:SetValue(c32465539.aclimit)
e1:SetCondition(c32465539.actcon) e1:SetCondition(c32465539.actcon)
e1:SetReset(RESET_EVENT+0x1fe0000)
rc:RegisterEffect(e1,true) rc:RegisterEffect(e1,true)
if not rc:IsType(TYPE_EFFECT) then if not rc:IsType(TYPE_EFFECT) then
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
......
...@@ -45,7 +45,7 @@ function c45644898.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -45,7 +45,7 @@ function c45644898.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoDeck(e:GetHandler(),nil,2,REASON_COST) Duel.SendtoDeck(e:GetHandler(),nil,2,REASON_COST)
end end
function c45644898.gvfilter(c) function c45644898.gvfilter(c)
return c:IsType(TYPE_EFFECT) and c:IsAbleToGrave() return c:IsFaceup() and c:IsType(TYPE_EFFECT) and c:IsAbleToGrave()
end end
function c45644898.spfilter(c,e,tp) function c45644898.spfilter(c,e,tp)
return c:IsSetCard(0xdd) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xdd) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -5,17 +5,17 @@ function c47598941.initial_effect(c) ...@@ -5,17 +5,17 @@ function c47598941.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(TIMING_DESTROY,TIMING_DESTROY) e1:SetHintTiming(TIMING_DESTROY,TIMING_DESTROY)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetTarget(c47598941.target1) e1:SetTarget(c47598941.target1)
e1:SetOperation(c47598941.operation) e1:SetOperation(c47598941.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--set p --set p
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_DESTROYED) e2:SetCode(EVENT_DESTROYED)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCountLimit(1,47598941)
e2:SetCondition(c47598941.condition) e2:SetCondition(c47598941.condition)
e2:SetTarget(c47598941.target2) e2:SetTarget(c47598941.target2)
e2:SetOperation(c47598941.operation) e2:SetOperation(c47598941.operation)
...@@ -33,7 +33,7 @@ function c47598941.initial_effect(c) ...@@ -33,7 +33,7 @@ function c47598941.initial_effect(c)
e4:SetCode(EFFECT_UPDATE_DEFENCE) e4:SetCode(EFFECT_UPDATE_DEFENCE)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c47598941.filter(c,e,tp) function c47598941.filter(c)
return c:IsSetCard(0xe0) and c:IsType(TYPE_PENDULUM) and not c:IsForbidden() return c:IsSetCard(0xe0) and c:IsType(TYPE_PENDULUM) and not c:IsForbidden()
end end
function c47598941.cfilter(c,tp) function c47598941.cfilter(c,tp)
...@@ -44,7 +44,7 @@ function c47598941.target1(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -44,7 +44,7 @@ function c47598941.target1(e,tp,eg,ep,ev,re,r,rp,chk)
local res,teg,tep,tev,tre,tr,trp=Duel.CheckEvent(EVENT_DESTROYED,true) local res,teg,tep,tev,tre,tr,trp=Duel.CheckEvent(EVENT_DESTROYED,true)
if res if res
and Duel.GetFlagEffect(tp,47598941)==0 and Duel.GetFlagEffect(tp,47598941)==0
and Duel.IsExistingMatchingCard(c47598941.filter,tp,LOCATION_DECK,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(c47598941.filter,tp,LOCATION_DECK,0,1,nil)
and (Duel.CheckLocation(tp,LOCATION_SZONE,6) or Duel.CheckLocation(tp,LOCATION_SZONE,7)) and (Duel.CheckLocation(tp,LOCATION_SZONE,6) or Duel.CheckLocation(tp,LOCATION_SZONE,7))
and teg:IsExists(c47598941.cfilter,1,nil,tp) and teg:IsExists(c47598941.cfilter,1,nil,tp)
and Duel.SelectYesNo(tp,94) then and Duel.SelectYesNo(tp,94) then
...@@ -58,7 +58,7 @@ function c47598941.target2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -58,7 +58,7 @@ function c47598941.target2(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.GetFlagEffect(tp,47598941)==0 and Duel.GetFlagEffect(tp,47598941)==0
and (Duel.CheckLocation(tp,LOCATION_SZONE,6) or Duel.CheckLocation(tp,LOCATION_SZONE,7)) and (Duel.CheckLocation(tp,LOCATION_SZONE,6) or Duel.CheckLocation(tp,LOCATION_SZONE,7))
and Duel.IsExistingMatchingCard(c47598941.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c47598941.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.RegisterFlagEffect(tp,47598941,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,47598941,RESET_PHASE+PHASE_END,0,1)
end end
function c47598941.operation(e,tp,eg,ep,ev,re,r,rp) function c47598941.operation(e,tp,eg,ep,ev,re,r,rp)
...@@ -66,7 +66,7 @@ function c47598941.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,7 +66,7 @@ function c47598941.operation(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) or Duel.GetFlagEffect(tp,47598941)==0 then return end if not c:IsRelateToEffect(e) or Duel.GetFlagEffect(tp,47598941)==0 then return end
if not (Duel.CheckLocation(tp,LOCATION_SZONE,6) or Duel.CheckLocation(tp,LOCATION_SZONE,7)) then return end if not (Duel.CheckLocation(tp,LOCATION_SZONE,6) or Duel.CheckLocation(tp,LOCATION_SZONE,7)) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local g=Duel.SelectMatchingCard(tp,c47598941.filter,tp,LOCATION_DECK,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c47598941.filter,tp,LOCATION_DECK,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
......
...@@ -39,20 +39,17 @@ function c51777272.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -39,20 +39,17 @@ function c51777272.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c51777272.operation(e,tp,eg,ep,ev,re,r,rp) function c51777272.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EFFECT_DESTROY_REPLACE)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetTarget(c51777272.reptg)
e1:SetValue(c51777272.repval)
Duel.RegisterEffect(e1,tp)
local g=Group.CreateGroup()
g:KeepAlive()
e1:SetLabelObject(g)
if c:IsRelateToEffect(e) then if c:IsRelateToEffect(e) then
--indestructible
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_DESTROY_REPLACE)
e1:SetRange(LOCATION_SZONE)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetTarget(c51777272.reptg)
e1:SetValue(c51777272.repval)
Duel.RegisterEffect(e1,tp)
local g=Group.CreateGroup()
g:KeepAlive()
e1:SetLabelObject(g)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_ATTACK_ALL) e2:SetCode(EFFECT_ATTACK_ALL)
......
...@@ -26,10 +26,11 @@ function c58600555.initial_effect(c) ...@@ -26,10 +26,11 @@ function c58600555.initial_effect(c)
--Change position --Change position
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(58600555,1)) e3:SetDescription(aux.Stringid(58600555,1))
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1) e3:SetCountLimit(1)
e3:SetCode(EVENT_CHANGE_POS) e3:SetCode(EVENT_CHANGE_POS)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetTarget(c58600555.target) e3:SetTarget(c58600555.target)
e3:SetOperation(c58600555.operation) e3:SetOperation(c58600555.operation)
c:RegisterEffect(e3) c:RegisterEffect(e3)
......
--RR-ブースター・ストリクス --RR-ブースター・ストリクス
function c73977033.initial_effect(c) function c73977033.initial_effect(c)
--Activate --destroy
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY) e1:SetCategory(CATEGORY_DESTROY)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_BE_BATTLE_TARGET) e1:SetCode(EVENT_BE_BATTLE_TARGET)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCondition(c73977033.condition) e1:SetCondition(c73977033.condition)
e1:SetCost(c73977033.cost) e1:SetCost(c73977033.cost)
e1:SetTarget(c73977033.target) e1:SetTarget(c73977033.target)
e1:SetOperation(c73977033.activate) e1:SetOperation(c73977033.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c73977033.condition(e,tp,eg,ep,ev,re,r,rp) function c73977033.condition(e,tp,eg,ep,ev,re,r,rp)
...@@ -21,14 +20,13 @@ function c73977033.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -21,14 +20,13 @@ function c73977033.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end end
function c73977033.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c73977033.target(e,tp,eg,ep,ev,re,r,rp,chk)
local tg=Duel.GetAttacker() local tg=Duel.GetAttacker()
if chkc then return chkc==tg end if chk==0 then return tg:IsOnField() and tg:IsDestructable() end
if chk==0 then return tg:IsOnField() and tg:IsDestructable() and tg:IsCanBeEffectTarget(e) end
Duel.SetTargetCard(tg) Duel.SetTargetCard(tg)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,tg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,tg,1,0,0)
end end
function c73977033.activate(e,tp,eg,ep,ev,re,r,rp) function c73977033.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsAttackable() and not tc:IsStatus(STATUS_ATTACK_CANCELED) then if tc:IsRelateToEffect(e) and tc:IsAttackable() and not tc:IsStatus(STATUS_ATTACK_CANCELED) then
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
......
...@@ -45,12 +45,12 @@ function c84812868.filter2(c) ...@@ -45,12 +45,12 @@ function c84812868.filter2(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
end end
function c84812868.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c84812868.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and chkc:IsAbleToHand() end if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and c84812868.filter2(chkc) end
if chk==0 then return Duel.IsExistingMatchingCard(c84812868.filter,tp,LOCATION_ONFIELD,0,1,e:GetHandler()) if chk==0 then return Duel.IsExistingMatchingCard(c84812868.filter,tp,LOCATION_ONFIELD,0,1,e:GetHandler())
and Duel.IsExistingTarget(c84812868.filter2,tp,0,LOCATION_SZONE,1,nil) end and Duel.IsExistingTarget(c84812868.filter2,tp,0,LOCATION_ONFIELD,1,nil) end
local ct=Duel.GetMatchingGroupCount(c84812868.filter,tp,LOCATION_ONFIELD,0,e:GetHandler()) local ct=Duel.GetMatchingGroupCount(c84812868.filter,tp,LOCATION_ONFIELD,0,e:GetHandler())
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectTarget(tp,c84812868.filter2,tp,0,LOCATION_SZONE,1,ct,nil) local g=Duel.SelectTarget(tp,c84812868.filter2,tp,0,LOCATION_ONFIELD,1,ct,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,g:GetCount(),0,0)
end end
function c84812868.thop(e,tp,eg,ep,ev,re,r,rp) function c84812868.thop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -36,7 +36,7 @@ function c86157908.atkcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,7 +36,7 @@ function c86157908.atkcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c86157908.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c86157908.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local at=Duel.GetAttacker() local at=Duel.GetAttacker()
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c86157908.atkfilter(chkc) and chkc~=at end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c86157908.atkfilter(chkc) and chkc~=at end
if chk==0 then return Duel.IsExistingTarget(c86157908.atkfilter,tp,LOCATION_MZONE,0,1,at) end if chk==0 then return Duel.IsExistingTarget(c86157908.atkfilter,tp,LOCATION_MZONE,0,1,at) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c86157908.atkfilter,tp,LOCATION_MZONE,0,1,1,at) Duel.SelectTarget(tp,c86157908.atkfilter,tp,LOCATION_MZONE,0,1,1,at)
......
...@@ -18,6 +18,7 @@ function c94919024.initial_effect(c) ...@@ -18,6 +18,7 @@ function c94919024.initial_effect(c)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_CHAINING) e2:SetCode(EVENT_CHAINING)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e2:SetCondition(c94919024.condition) e2:SetCondition(c94919024.condition)
e2:SetCost(c94919024.cost) e2:SetCost(c94919024.cost)
e2:SetTarget(c94919024.target) e2:SetTarget(c94919024.target)
...@@ -45,7 +46,6 @@ function c94919024.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +46,6 @@ function c94919024.atkop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end end
function c94919024.filter(c,tp) function c94919024.filter(c,tp)
return c:IsControler(tp) and c:IsLocation(LOCATION_MZONE) and c:IsFaceup() and c:IsSetCard(0xdf) return c:IsControler(tp) and c:IsLocation(LOCATION_MZONE) and c:IsFaceup() and c:IsSetCard(0xdf)
end end
......
...@@ -21,7 +21,6 @@ function c97165977.initial_effect(c) ...@@ -21,7 +21,6 @@ function c97165977.initial_effect(c)
--Multiple attacks --Multiple attacks
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(97165977,0)) e3:SetDescription(aux.Stringid(97165977,0))
e3:SetCategory(CATEGORY_TOHAND)
e3:SetType(EFFECT_TYPE_IGNITION) e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetCountLimit(1) e3:SetCountLimit(1)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
...@@ -51,9 +50,7 @@ function c97165977.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,9 +50,7 @@ function c97165977.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_DESTROY_REPLACE) e1:SetCode(EFFECT_DESTROY_REPLACE)
e1:SetRange(LOCATION_SZONE)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetTarget(c97165977.reptg) e1:SetTarget(c97165977.reptg)
e1:SetValue(c97165977.repval) e1:SetValue(c97165977.repval)
......
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