Commit 80eb3209 authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

remove unnecessary tab/space (#1747)

parent 25e9d246
...@@ -46,7 +46,7 @@ function c14005031.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,7 +46,7 @@ function c14005031.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetRange(LOCATION_SZONE) e1:SetRange(LOCATION_SZONE)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetOperation(c14005031.matop) e1:SetOperation(c14005031.matop)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
c:RegisterEffect(e1) c:RegisterEffect(e1)
......
...@@ -9,7 +9,7 @@ function c16832845.initial_effect(c) ...@@ -9,7 +9,7 @@ function c16832845.initial_effect(c)
e1:SetCondition(c16832845.condition) e1:SetCondition(c16832845.condition)
e1:SetTarget(c16832845.target) e1:SetTarget(c16832845.target)
e1:SetOperation(c16832845.activate) e1:SetOperation(c16832845.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
if not c16832845.global_check then if not c16832845.global_check then
c16832845.global_check=true c16832845.global_check=true
c16832845[0]=false c16832845[0]=false
......
...@@ -8,7 +8,7 @@ function c16990348.initial_effect(c) ...@@ -8,7 +8,7 @@ function c16990348.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c16990348.target) e1:SetTarget(c16990348.target)
e1:SetOperation(c16990348.activate) e1:SetOperation(c16990348.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c16990348.cfilter(c) function c16990348.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x19) return c:IsFaceup() and c:IsSetCard(0x19)
......
...@@ -5,7 +5,7 @@ function c18249921.initial_effect(c) ...@@ -5,7 +5,7 @@ function c18249921.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,18249921+EFFECT_COUNT_CODE_OATH) e1:SetCountLimit(1,18249921+EFFECT_COUNT_CODE_OATH)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--position --position
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(18249921,0)) e2:SetDescription(aux.Stringid(18249921,0))
......
...@@ -42,7 +42,7 @@ function c21208154.initial_effect(c) ...@@ -42,7 +42,7 @@ function c21208154.initial_effect(c)
e7:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e7:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e7:SetRange(LOCATION_MZONE) e7:SetRange(LOCATION_MZONE)
e7:SetValue(1) e7:SetValue(1)
c:RegisterEffect(e7) c:RegisterEffect(e7)
end end
function c21208154.ttcon(e,c,minc) function c21208154.ttcon(e,c,minc)
if c==nil then return true end if c==nil then return true end
......
...@@ -35,9 +35,9 @@ function c24207889.initial_effect(c) ...@@ -35,9 +35,9 @@ function c24207889.initial_effect(c)
c24207889[1]={} c24207889[1]={}
local race=1 local race=1
while race<RACE_ALL do while race<RACE_ALL do
c24207889[0][race]=Group.CreateGroup() c24207889[0][race]=Group.CreateGroup()
c24207889[0][race]:KeepAlive() c24207889[0][race]:KeepAlive()
c24207889[1][race]=Group.CreateGroup() c24207889[1][race]=Group.CreateGroup()
c24207889[1][race]:KeepAlive() c24207889[1][race]:KeepAlive()
race=race<<1 race=race<<1
end end
......
...@@ -29,7 +29,7 @@ function c2625939.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -29,7 +29,7 @@ function c2625939.activate(e,tp,eg,ep,ev,re,r,rp)
i=i+1 i=i+1
end end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(2625939,1)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(2625939,1))
ct=Duel.AnnounceNumber(tp,table.unpack(num)) ct=Duel.AnnounceNumber(tp,table.unpack(num))
end end
repeat repeat
local token=Duel.CreateToken(tp,2625940) local token=Duel.CreateToken(tp,2625940)
......
...@@ -46,7 +46,6 @@ function c26570480.cfilter(c,tp,ec) ...@@ -46,7 +46,6 @@ function c26570480.cfilter(c,tp,ec)
return ((np==POS_FACEUP_DEFENSE and pp==POS_FACEUP_ATTACK) or (np==POS_FACEUP_ATTACK and pp&POS_DEFENSE~=0)) return ((np==POS_FACEUP_DEFENSE and pp==POS_FACEUP_ATTACK) or (np==POS_FACEUP_ATTACK and pp&POS_DEFENSE~=0))
and c:IsControler(tp) and c:IsSetCard(0x71) and c:IsControler(tp) and c:IsSetCard(0x71)
end end
end end
function c26570480.poscon(e,tp,eg,ep,ev,re,r,rp) function c26570480.poscon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c26570480.cfilter,1,nil,tp,e:GetHandler()) return eg:IsExists(c26570480.cfilter,1,nil,tp,e:GetHandler())
......
...@@ -44,7 +44,7 @@ function c27623932.CanEquipFilter(c,eqc) ...@@ -44,7 +44,7 @@ function c27623932.CanEquipFilter(c,eqc)
return c:IsFaceup() and eqc:CheckEquipTarget(c) return c:IsFaceup() and eqc:CheckEquipTarget(c)
end end
function c27623932.eqfilter(c,tp) function c27623932.eqfilter(c,tp)
return aux.IsCodeListed(c,3285552) and c:IsType(TYPE_EQUIP) and c:CheckUniqueOnField(tp) and not c:IsForbidden() return aux.IsCodeListed(c,3285552) and c:IsType(TYPE_EQUIP) and c:CheckUniqueOnField(tp) and not c:IsForbidden()
and Duel.IsExistingMatchingCard(c27623932.CanEquipFilter,tp,LOCATION_MZONE,0,1,nil,c) and Duel.IsExistingMatchingCard(c27623932.CanEquipFilter,tp,LOCATION_MZONE,0,1,nil,c)
end end
function c27623932.operation(e,tp,eg,ep,ev,re,r,rp) function c27623932.operation(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -26,7 +26,7 @@ function c32134638.tfilter(c,tp) ...@@ -26,7 +26,7 @@ function c32134638.tfilter(c,tp)
return c:IsFaceup() and c:IsSetCard(0xd8) and c:IsControler(tp) and c:IsLocation(LOCATION_ONFIELD) return c:IsFaceup() and c:IsSetCard(0xd8) and c:IsControler(tp) and c:IsLocation(LOCATION_ONFIELD)
end end
function c32134638.negcon(e,tp,eg,ep,ev,re,r,rp) function c32134638.negcon(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return e:GetHandler():GetFlagEffect(32134638)==0 and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) return e:GetHandler():GetFlagEffect(32134638)==0 and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET)
and g and g:IsExists(c32134638.tfilter,1,e:GetHandler(),tp) and Duel.IsChainDisablable(ev) and g and g:IsExists(c32134638.tfilter,1,e:GetHandler(),tp) and Duel.IsChainDisablable(ev)
end end
......
...@@ -13,7 +13,7 @@ function c36668118.initial_effect(c) ...@@ -13,7 +13,7 @@ function c36668118.initial_effect(c)
e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x102)) e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x102))
e2:SetValue(300) e2:SetValue(300)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=e2:Clone() local e3=e2:Clone()
e3:SetCode(EFFECT_UPDATE_ATTACK) e3:SetCode(EFFECT_UPDATE_ATTACK)
c:RegisterEffect(e3) c:RegisterEffect(e3)
......
...@@ -24,7 +24,7 @@ function c368382.tfilter(c,tp) ...@@ -24,7 +24,7 @@ function c368382.tfilter(c,tp)
return c:IsFaceup() and c:IsSetCard(0xd8) and c:IsControler(tp) and c:IsLocation(LOCATION_ONFIELD) return c:IsFaceup() and c:IsSetCard(0xd8) and c:IsControler(tp) and c:IsLocation(LOCATION_ONFIELD)
end end
function c368382.negcon(e,tp,eg,ep,ev,re,r,rp) function c368382.negcon(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return e:GetHandler():GetFlagEffect(368382)==0 and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) return e:GetHandler():GetFlagEffect(368382)==0 and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET)
and g and g:IsExists(c368382.tfilter,1,e:GetHandler(),tp) and Duel.IsChainDisablable(ev) and g and g:IsExists(c368382.tfilter,1,e:GetHandler(),tp) and Duel.IsChainDisablable(ev)
end end
......
...@@ -22,7 +22,7 @@ function c38576155.thcfilter(c) ...@@ -22,7 +22,7 @@ function c38576155.thcfilter(c)
end end
function c38576155.thcon(e,tp,eg,ep,ev,re,r,rp) function c38576155.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)>0 return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)>0
and not Duel.IsExistingMatchingCard(c38576155.thcfilter,tp,LOCATION_MZONE,0,1,nil) and not Duel.IsExistingMatchingCard(c38576155.thcfilter,tp,LOCATION_MZONE,0,1,nil)
end end
function c38576155.thfilter(c) function c38576155.thfilter(c)
return c:IsCode(64961254) and c:IsAbleToHand() return c:IsCode(64961254) and c:IsAbleToHand()
......
...@@ -27,7 +27,7 @@ function c38988538.tfilter(c,tp) ...@@ -27,7 +27,7 @@ function c38988538.tfilter(c,tp)
return c:IsFaceup() and c:IsSetCard(0xd8) and c:IsControler(tp) and c:IsLocation(LOCATION_ONFIELD) return c:IsFaceup() and c:IsSetCard(0xd8) and c:IsControler(tp) and c:IsLocation(LOCATION_ONFIELD)
end end
function c38988538.negcon(e,tp,eg,ep,ev,re,r,rp) function c38988538.negcon(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return e:GetHandler():GetFlagEffect(38988538)==0 and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) return e:GetHandler():GetFlagEffect(38988538)==0 and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET)
and g and g:IsExists(c38988538.tfilter,1,e:GetHandler(),tp) and Duel.IsChainDisablable(ev) and g and g:IsExists(c38988538.tfilter,1,e:GetHandler(),tp) and Duel.IsChainDisablable(ev)
end end
......
...@@ -15,7 +15,7 @@ function c41858121.filter(c) ...@@ -15,7 +15,7 @@ function c41858121.filter(c)
end end
function c41858121.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c41858121.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c41858121.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c41858121.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c41858121.filter,tp,LOCATION_GRAVE,0,3,nil) if chk==0 then return Duel.IsExistingTarget(c41858121.filter,tp,LOCATION_GRAVE,0,3,nil)
and ((Duel.IsPlayerCanDraw(tp) and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0) and ((Duel.IsPlayerCanDraw(tp) and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0)
or Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil)) or Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil))
end end
......
...@@ -51,7 +51,7 @@ function c43004235.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function c43004235.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.ShuffleHand(tp) Duel.ShuffleHand(tp)
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_HAND,0,i,i,nil) local g=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_HAND,0,i,i,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
end end
......
--通行増税 --通行増税
function c44716890.initial_effect(c) function c44716890.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
......
...@@ -41,7 +41,7 @@ function c46898368.splimit(e,c) ...@@ -41,7 +41,7 @@ function c46898368.splimit(e,c)
end end
function c46898368.filter(c,tp) function c46898368.filter(c,tp)
return c:IsFaceup() and c:IsType(TYPE_LINK) and Duel.IsPlayerCanDraw(tp,c:GetLink()) return c:IsFaceup() and c:IsType(TYPE_LINK) and Duel.IsPlayerCanDraw(tp,c:GetLink())
end end
function c46898368.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c46898368.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c46898368.filter(chkc,tp) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c46898368.filter(chkc,tp) end
if chk==0 then return Duel.IsExistingTarget(c46898368.filter,tp,0,LOCATION_MZONE,1,nil,tp) end if chk==0 then return Duel.IsExistingTarget(c46898368.filter,tp,0,LOCATION_MZONE,1,nil,tp) end
......
...@@ -15,7 +15,7 @@ function c50675040.initial_effect(c) ...@@ -15,7 +15,7 @@ function c50675040.initial_effect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_BATTLE_START) e1:SetCode(EVENT_BATTLE_START)
e1:SetRange(LOCATION_SZONE) e1:SetRange(LOCATION_SZONE)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c50675040.thcon) e1:SetCondition(c50675040.thcon)
e1:SetTarget(c50675040.thtg) e1:SetTarget(c50675040.thtg)
e1:SetOperation(c50675040.thop) e1:SetOperation(c50675040.thop)
......
...@@ -8,7 +8,7 @@ function c54734082.initial_effect(c) ...@@ -8,7 +8,7 @@ function c54734082.initial_effect(c)
e1:SetCondition(c54734082.spcon) e1:SetCondition(c54734082.spcon)
e1:SetTarget(c54734082.sptg) e1:SetTarget(c54734082.sptg)
e1:SetOperation(c54734082.spop) e1:SetOperation(c54734082.spop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c54734082.cpfilter(c) function c54734082.cpfilter(c)
return c:IsFaceup() and c:IsSetCard(0x2066) and c:GetOriginalLevel()<=4 return c:IsFaceup() and c:IsSetCard(0x2066) and c:GetOriginalLevel()<=4
......
...@@ -35,7 +35,7 @@ function c56043446.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,7 +35,7 @@ function c56043446.operation(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e2:SetValue(1) e2:SetValue(1)
e2:SetCondition(c56043446.rcon) e2:SetCondition(c56043446.rcon)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN,3) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN,3)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
end end
......
...@@ -18,7 +18,7 @@ function c56570271.initial_effect(c) ...@@ -18,7 +18,7 @@ function c56570271.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetCode(EFFECT_SPSUMMON_CONDITION) e2:SetCode(EFFECT_SPSUMMON_CONDITION)
e2:SetValue(c56570271.splimit) e2:SetValue(c56570271.splimit)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c56570271.splimit(e,se,sp,st) function c56570271.splimit(e,se,sp,st)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -54,7 +54,7 @@ function c59765225.imop(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +54,7 @@ function c59765225.imop(e,tp,eg,ep,ev,re,r,rp)
end end
else else
atk=rc:GetTextAttack() atk=rc:GetTextAttack()
end end
if atk>0 then if atk>0 then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -29,7 +29,7 @@ end ...@@ -29,7 +29,7 @@ end
function c59778096.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function c59778096.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c59778096.tgfilter,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c59778096.tgfilter,tp,0,LOCATION_MZONE,1,nil) end
local g=Duel.GetMatchingGroup(c59778096.tgfilter,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(c59778096.tgfilter,tp,0,LOCATION_MZONE,nil)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,1,0,0)
end end
function c59778096.tgop(e,tp,eg,ep,ev,re,r,rp) function c59778096.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
......
...@@ -39,7 +39,7 @@ function c6186304.initial_effect(c) ...@@ -39,7 +39,7 @@ function c6186304.initial_effect(c)
e5:SetTargetRange(LOCATION_MZONE,0) e5:SetTargetRange(LOCATION_MZONE,0)
e5:SetTarget(aux.TargetBoolFunction(Card.IsCode,83965310)) e5:SetTarget(aux.TargetBoolFunction(Card.IsCode,83965310))
e5:SetValue(c6186304.atkval) e5:SetValue(c6186304.atkval)
c:RegisterEffect(e5) c:RegisterEffect(e5)
local e6=e5:Clone() local e6=e5:Clone()
e6:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e6:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e6:SetValue(aux.indoval) e6:SetValue(aux.indoval)
......
...@@ -42,7 +42,7 @@ function c63519819.initial_effect(c) ...@@ -42,7 +42,7 @@ function c63519819.initial_effect(c)
e5:SetRange(LOCATION_MZONE) e5:SetRange(LOCATION_MZONE)
e5:SetCode(EFFECT_SET_DEFENSE) e5:SetCode(EFFECT_SET_DEFENSE)
e5:SetCondition(c63519819.adcon) e5:SetCondition(c63519819.adcon)
e5:SetValue(c63519819.defval) e5:SetValue(c63519819.defval)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c63519819.eqcon(e,tp,eg,ep,ev,re,r,rp) function c63519819.eqcon(e,tp,eg,ep,ev,re,r,rp)
...@@ -85,7 +85,7 @@ function c63519819.equip_monster(c,tp,tc) ...@@ -85,7 +85,7 @@ function c63519819.equip_monster(c,tp,tc)
e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE) e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
e2:SetValue(c63519819.repval) e2:SetValue(c63519819.repval)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
end end
function c63519819.eqop(e,tp,eg,ep,ev,re,r,rp) function c63519819.eqop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -27,7 +27,7 @@ function c64018647.CanEquipFilter(c,eqc) ...@@ -27,7 +27,7 @@ function c64018647.CanEquipFilter(c,eqc)
return c:IsFaceup() and eqc:CheckEquipTarget(c) return c:IsFaceup() and eqc:CheckEquipTarget(c)
end end
function c64018647.eqfilter(c,tp) function c64018647.eqfilter(c,tp)
return aux.IsCodeListed(c,3285552) and c:IsType(TYPE_EQUIP) and c:CheckUniqueOnField(tp) and not c:IsForbidden() return aux.IsCodeListed(c,3285552) and c:IsType(TYPE_EQUIP) and c:CheckUniqueOnField(tp) and not c:IsForbidden()
and Duel.IsExistingMatchingCard(c64018647.CanEquipFilter,tp,LOCATION_MZONE,0,1,nil,c) and Duel.IsExistingMatchingCard(c64018647.CanEquipFilter,tp,LOCATION_MZONE,0,1,nil,c)
end end
function c64018647.activate(e,tp,eg,ep,ev,re,r,rp) function c64018647.activate(e,tp,eg,ep,ev,re,r,rp)
...@@ -51,8 +51,8 @@ function c64018647.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,8 +51,8 @@ function c64018647.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
if Duel.GetLocationCount(tp,LOCATION_SZONE)>0 if Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.eqfilter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,tp) and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.eqfilter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,tp)
and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
......
...@@ -62,7 +62,7 @@ function c64276752.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,7 +62,7 @@ function c64276752.operation(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT) e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
end end
end end
end end
local e0=Effect.CreateEffect(c) local e0=Effect.CreateEffect(c)
......
...@@ -32,6 +32,6 @@ function c68191243.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,6 +32,6 @@ function c68191243.op(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c68191243.filter,tp,LOCATION_HAND,0,nil,e,tp) local g=Duel.GetMatchingGroup(c68191243.filter,tp,LOCATION_HAND,0,nil,e,tp)
if g:GetCount()==0 then return end if g:GetCount()==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=g:SelectSubGroup(tp,aux.dncheck,false,1,ft) local sg=g:SelectSubGroup(tp,aux.dncheck,false,1,ft)
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
end end
--迷犬メリー --迷犬メリー
function c71583486.initial_effect(c) function c71583486.initial_effect(c)
--effect --effect
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(71583486,0)) e1:SetDescription(aux.Stringid(71583486,0))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
...@@ -16,8 +16,8 @@ function c71583486.thfilter(c) ...@@ -16,8 +16,8 @@ function c71583486.thfilter(c)
end end
function c71583486.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c71583486.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
local b1=c:IsAbleToDeck() local b1=c:IsAbleToDeck()
local b2=Duel.IsExistingMatchingCard(c71583486.thfilter,tp,LOCATION_DECK,0,1,nil) and c:IsAbleToDeck() local b2=Duel.IsExistingMatchingCard(c71583486.thfilter,tp,LOCATION_DECK,0,1,nil) and c:IsAbleToDeck()
if chk==0 then return b1 or b2 end if chk==0 then return b1 or b2 end
local op=0 local op=0
if b1 and b2 then op=Duel.SelectOption(tp,aux.Stringid(71583486,1),aux.Stringid(71583486,2)) if b1 and b2 then op=Duel.SelectOption(tp,aux.Stringid(71583486,1),aux.Stringid(71583486,2))
......
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
function c76895648.initial_effect(c) function c76895648.initial_effect(c)
--activate --activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--dice --dice
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(76895648,0)) e2:SetDescription(aux.Stringid(76895648,0))
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e2:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DRAW) e2:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DRAW)
e2:SetCode(EVENT_PHASE+PHASE_STANDBY) e2:SetCode(EVENT_PHASE+PHASE_STANDBY)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
......
...@@ -17,7 +17,7 @@ end ...@@ -17,7 +17,7 @@ end
function c77610503.cfilter2(c) function c77610503.cfilter2(c)
return c:IsSummonType(SUMMON_TYPE_SPECIAL) return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c77610503.discon(e,tp,eg,ep,ev,re,r,rp) function c77610503.discon(e,tp,eg,ep,ev,re,r,rp)
return tp~=ep and Duel.GetCurrentChain()==0 return tp~=ep and Duel.GetCurrentChain()==0
and Duel.IsExistingMatchingCard(c77610503.cfilter1,tp,LOCATION_MZONE,0,1,nil) and Duel.IsExistingMatchingCard(c77610503.cfilter1,tp,LOCATION_MZONE,0,1,nil)
and not Duel.IsExistingMatchingCard(c77610503.cfilter2,tp,LOCATION_MZONE,0,1,nil) and not Duel.IsExistingMatchingCard(c77610503.cfilter2,tp,LOCATION_MZONE,0,1,nil)
......
...@@ -42,6 +42,6 @@ function c84976088.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,6 +42,6 @@ function c84976088.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+RESETS_REDIRECT) e2:SetReset(RESET_EVENT+RESETS_REDIRECT)
e2:SetValue(LOCATION_REMOVED) e2:SetValue(LOCATION_REMOVED)
c:RegisterEffect(e2,true) c:RegisterEffect(e2,true)
end end
end end
end end
...@@ -37,7 +37,7 @@ function c88504133.cfilter(c,e,tp) ...@@ -37,7 +37,7 @@ function c88504133.cfilter(c,e,tp)
end end
function c88504133.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c88504133.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1) e:SetLabel(1)
if chk==0 then return true end if chk==0 then return true end
end end
function c88504133.tgefilter(c,tc,e,tp,rank) function c88504133.tgefilter(c,tc,e,tp,rank)
if not c:IsType(TYPE_XYZ) then return false end if not c:IsType(TYPE_XYZ) then return false end
...@@ -52,7 +52,7 @@ function c88504133.tgfilter(c,e,tp,rank) ...@@ -52,7 +52,7 @@ function c88504133.tgfilter(c,e,tp,rank)
and Duel.IsExistingMatchingCard(c88504133.tgefilter,tp,LOCATION_EXTRA,0,1,nil,c,e,tp,rank) and Duel.IsExistingMatchingCard(c88504133.tgefilter,tp,LOCATION_EXTRA,0,1,nil,c,e,tp,rank)
end end
function c88504133.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c88504133.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c88504133.cfilter(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c88504133.cfilter(chkc,e,tp) end
if chk==0 then if chk==0 then
if e:GetLabel()==0 then return false end if e:GetLabel()==0 then return false end
e:SetLabel(0) e:SetLabel(0)
......
...@@ -37,7 +37,7 @@ function c8868767.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,7 +37,7 @@ function c8868767.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(Card.IsAbleToRemove),tp,LOCATION_GRAVE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(Card.IsAbleToRemove),tp,LOCATION_GRAVE,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.Remove(g,POS_FACEUP,REASON_EFFECT) Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
end end
end end
end end
end end
...@@ -20,7 +20,7 @@ function c9553721.initial_effect(c) ...@@ -20,7 +20,7 @@ function c9553721.initial_effect(c)
--search --search
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(9553721,0)) e4:SetDescription(aux.Stringid(9553721,0))
e4:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e4:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e4:SetProperty(EFFECT_FLAG_DELAY) e4:SetProperty(EFFECT_FLAG_DELAY)
e4:SetCode(EVENT_TO_HAND) e4:SetCode(EVENT_TO_HAND)
......
...@@ -3,7 +3,7 @@ function c99747800.initial_effect(c) ...@@ -3,7 +3,7 @@ function c99747800.initial_effect(c)
--atkup --atkup
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(99747800,0)) e1:SetDescription(aux.Stringid(99747800,0))
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY) e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
......
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