Commit 5fe2359d authored by TanakaKotoha's avatar TanakaKotoha

fix some of redtext

parent 22835a40
......@@ -75,7 +75,7 @@ function c1141004.ofilter2(c,e,tp,num)
end
function c1141004.op2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and (not c:IsStatus(STATUS_BATTLE_DESTROYED) and Duel.SelectYesNo(tp,aux.Stringid(1141004,0)) then Duel.SendtoHand(c,nil,REASON_EFFECT) end
if c:IsRelateToEffect(e) and (not c:IsStatus(STATUS_BATTLE_DESTROYED) and Duel.SelectYesNo(tp,aux.Stringid(1141004,0))) then Duel.SendtoHand(c,nil,REASON_EFFECT) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RESOLVECARD)
local sg=Duel.SelectMatchingCard(tp,c1141004.ofilter2,tp,LOCATION_GRAVE,0,1,1,nil,e,tp,e:GetLabel())
if sg:GetCount()>0 then
......
......@@ -57,7 +57,7 @@ end
function c12009043.hspop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
end
function c12009043.filter(c,e,sp)
......
......@@ -59,7 +59,7 @@ function c12031010.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local g=Duel.SelectTarget(tp,aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end
function c12031001.thfilter(c)
function c12031010.thfilter(c)
return c:IsCode(12031000) and c:IsAbleToHand()
end
function c12031010.desop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -9,25 +9,25 @@ function c14801055.initial_effect(c)
c:RegisterEffect(e0)
--handes
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(14801003,1))
e1:SetDescription(aux.Stringid(14801055,1))
e1:SetCategory(CATEGORY_HANDES)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_BATTLE_DAMAGE)
e1:SetCondition(c14801003.condition)
e1:SetTarget(c14801003.target)
e1:SetOperation(c14801003.operation)
e1:SetCondition(c14801055.condition)
e1:SetTarget(c14801055.target)
e1:SetOperation(c14801055.operation)
c:RegisterEffect(e1)
--disable
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(14801003,0))
e2:SetDescription(aux.Stringid(14801055,0))
e2:SetCategory(CATEGORY_DISABLE)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetRange(LOCATION_MZONE)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetCountLimit(1)
e2:SetTarget(c14801003.distg)
e2:SetOperation(c14801003.disop)
e2:SetTarget(c14801055.distg)
e2:SetOperation(c14801055.disop)
c:RegisterEffect(e2)
--indes
local e3=Effect.CreateEffect(c)
......@@ -42,29 +42,29 @@ function c14801055.initial_effect(c)
e4:SetValue(aux.tgoval)
c:RegisterEffect(e4)
end
function c14801003.condition(e,tp,eg,ep,ev,re,r,rp)
function c14801055.condition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp
end
function c14801003.target(e,tp,eg,ep,ev,re,r,rp,chk)
function c14801055.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_HANDES,0,0,1-tp,1)
end
function c14801003.operation(e,tp,eg,ep,ev,re,r,rp)
function c14801055.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(ep,LOCATION_HAND,0)
local sg=g:RandomSelect(ep,1)
Duel.SendtoGrave(sg,REASON_DISCARD+REASON_EFFECT)
end
function c14801003.disfilter(c)
function c14801055.disfilter(c)
return c:IsFaceup() and not (c:GetAttack()==0 and c:IsDisabled())
end
function c14801003.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c14801003.disfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c14801003.disfilter,tp,0,LOCATION_MZONE,1,nil) end
function c14801055.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c14801055.disfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c14801055.disfilter,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c14801003.disfilter,tp,0,LOCATION_MZONE,1,1,nil)
local g=Duel.SelectTarget(tp,c14801055.disfilter,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DISABLE,g,1,0,0)
end
function c14801003.disop(e,tp,eg,ep,ev,re,r,rp)
function c14801055.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) then
......
......@@ -12,7 +12,7 @@ function c15415173.initial_effect(c)
e1:SetOperation(c15415173.activate)
c:RegisterEffect(e1)
end
function c15415158.ctcon(e,tp,eg,ep,ev,re,r,rp)
function c15415173.ctcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(Card.IsSetCard,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil,0x167)
end
function c15415173.filter(c)
......
......@@ -52,7 +52,6 @@ function cm.initial_effect(c)
e5:SetCode(EVENT_SPSUMMON_SUCCESS)
e5:SetRange(LOCATION_EXTRA)
e5:SetHintTiming(0,TIMING_END_PHASE+TIMING_EQUIP)
e5:SetProperty()
e5:SetCondition(cm.xyzcon)
e5:SetCost(cm.xyzcost1)
e5:SetTarget(cm.xyztg1)
......
......@@ -30,7 +30,7 @@ function c18001002.initial_effect(c)
e4:SetCategory(CATEGORY_SPECIAL_SUMMON)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e4:SetRange(LOCATION_REMOVED)
e4:SetProperty(+EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e4:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e4:SetCode(EVENT_DESTROYED)
e4:SetCondition(c18001002.condition)
e4:SetTarget(c18001002.target)
......
......@@ -30,7 +30,7 @@ function c18001003.initial_effect(c)
e4:SetCategory(CATEGORY_SPECIAL_SUMMON)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e4:SetRange(LOCATION_REMOVED)
e4:SetProperty(+EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e4:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e4:SetCode(EVENT_DESTROYED)
e4:SetCondition(c18001003.condition)
e4:SetTarget(c18001003.target)
......
......@@ -30,7 +30,7 @@ function c18001004.initial_effect(c)
e4:SetCategory(CATEGORY_SPECIAL_SUMMON)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e4:SetRange(LOCATION_REMOVED)
e4:SetProperty(+EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e4:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e4:SetCode(EVENT_DESTROYED)
e4:SetCondition(c18001004.condition)
e4:SetTarget(c18001004.target)
......
......@@ -30,7 +30,7 @@ function c18001005.initial_effect(c)
e4:SetCategory(CATEGORY_SPECIAL_SUMMON)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e4:SetRange(LOCATION_REMOVED)
e4:SetProperty(+EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e4:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e4:SetCode(EVENT_DESTROYED)
e4:SetCondition(c18001005.condition)
e4:SetTarget(c18001005.target)
......
......@@ -16,7 +16,6 @@ function c18713104.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty()
e2:SetRange(LOCATION_MZONE)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetCountLimit(1,18713104)
......
......@@ -14,7 +14,6 @@ function c18713106.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty()
e2:SetRange(LOCATION_HAND)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetCountLimit(1,18713106)
......
--流雾麟衍生物
function c2149999.initial_effect(c)
end
......@@ -5,7 +5,7 @@ function c22600016.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetRange(LOCATION_HAND+LOCATION_GRAVE)
e1:SetProperty(+EFFECT_FLAG_DELAY)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_REMOVE)
e1:SetCountLimit(1,22600016)
e1:SetCondition(c22600016.spcon)
......
......@@ -2,7 +2,7 @@
function c22600024.initial_effect(c)
--link summon
c:EnableReviveLimit()
aux.AddLinkProcedure(c,nil,2,2,c22600018.spcheck)
aux.AddLinkProcedure(c,nil,2,2,c22600024.spcheck)
--remove
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(22600024,0))
......
......@@ -6,7 +6,7 @@ function c32912372.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND+LOCATION_GRAVE)
e1:SetChainLimit(1,32912372)
e1:SetCountLimit(1,32912372)
e1:SetCondition(c32912372.spcon)
e1:SetTarget(c32912372.sptg)
e1:SetOperation(c32912372.spop)
......
......@@ -80,7 +80,7 @@ function c33700170.tg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetTargetPlayer(tp)
end
function c33700170.filter(c)
return c:IsSetCard(0x3440) and c:IsType(TYPE_PENDULUM) and not c:IsForbidden()IsAbleToHand()
return c:IsSetCard(0x3440) and c:IsType(TYPE_PENDULUM) and not c:IsForbidden() and c:IsAbleToHand()
end
function c33700170.damfilter(c)
return not c:IsSetCard(0x3440)
......
......@@ -6,6 +6,7 @@ cm.dfc_back_side=m-1
function cm.initial_effect(c)
Senya.DFCBackSideCommonEffect(c)
c:EnableReviveLimit()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetCode(EFFECT_DESTROY_REPLACE)
......
......@@ -10,7 +10,7 @@ function cm.initial_effect(c)
e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e2:SetValue(1)
c:RegisterEffect(e2)
local e1=Effect.CreateEffect(e:GetHandler())
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_BP)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
......
......@@ -5,7 +5,7 @@ local s = c33700428
local id = 33700428
function s.initial_effect(c)
c:EnableReviveLimit()
aux.AddLinkProcedure(c, aux.FilterBoolFunctionEx(Card.IsType, TYPE_TOKEN), 4, 4)
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkType,TYPE_EFFECT),4,4)
--battle indestructable
local e1 = Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -63,18 +63,18 @@ function c40008706.thcost(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
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end
function c40164421.cfilter(c)
function c40008706.cfilter(c)
return c:IsSetCard(0xf14)
end
function c40164421.thfilter(c,lv)
function c40008706.thfilter(c,lv)
return c:IsLevelBelow(lv) and c:IsRace(RACE_DRAGON) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c40164421.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
function c40008706.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return false end
local g=Duel.GetMatchingGroup(c40164421.cfilter,tp,LOCATION_REMOVED,0,nil)
local g=Duel.GetMatchingGroup(c40008706.cfilter,tp,LOCATION_REMOVED,0,nil)
local ct=g:GetClassCount(Card.GetCode)
return Duel.IsExistingMatchingCard(c40164421.thfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp,ct)
return Duel.IsExistingMatchingCard(c40008706.thfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp,ct)
end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
end
......
......@@ -24,7 +24,7 @@ function c47500033.handcon(e,tp,eg,ep,ev,re,r,rp)
end
function c47500033.chcon(e,tp,eg,ep,ev,re,r,rp)
local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)
return ep~=tp and (re:IsActiveType(TYPE_COUNTER) and loc==LOCATION_HAND) and re:GetActivityCount()==re:
return ep~=tp and re:IsActiveType(TYPE_COUNTER) and re:IsActiveType(TYPE_TRAP) and Duel.IsChainNegatable(ev)
end
function c47500033.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return re:GetHandler():IsAbleToRemove() end
......
......@@ -10,23 +10,23 @@ function c50218133.initial_effect(c)
c:RegisterEffect(e1)
--destroy all
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(13331639,1))
e4:SetDescription(aux.Stringid(50218133,1))
e4:SetCategory(CATEGORY_DESTROY)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e4:SetCode(EVENT_SPSUMMON_SUCCESS)
e4:SetTarget(c13331639.destg)
e4:SetOperation(c13331639.desop)
e4:SetTarget(c50218133.destg)
e4:SetOperation(c50218133.desop)
c:RegisterEffect(e4)
end
function c13331639.destg(e,tp,eg,ep,ev,re,r,rp,chk)
function c50218133.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local g=Duel.GetFieldGroup(tp,0,LOCATION_ONFIELD)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end
function c13331639.desop(e,tp,eg,ep,ev,re,r,rp)
function c50218133.desop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(tp,0,LOCATION_ONFIELD)
if g:GetCount()>0 then
Duel.Destroy(g,REASON_EFFECT)
......
......@@ -7,7 +7,7 @@ function cm.initial_effect(c)
c:AddLinkProcedure(nil,2,3,cm.gf)
local e1=rsef.QO(c,nil,{m,1},{1,m},"sp",nil,LOCATION_MZONE,rscon.phmp,nil,rsop.target2(cm.fun,cm.lfilter,"sp",LOCATION_EXTRA),cm.spop)
end
cm.rssetcode=="URBEX"
cm.rssetcode="URBEX"
function cm.gf(g)
return g:IsExists(rscf.CheckSetCard,1,nil,"URBEX")
end
......
......@@ -9,8 +9,8 @@ function c65090038.initial_effect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_BATTLED)
e1:SetTarget(c65090033.target)
e1:SetOperation(c65090033.operation)
e1:SetTarget(c65090038.target)
e1:SetOperation(c65090038.operation)
c:RegisterEffect(e1)
--destroy
local e2=Effect.CreateEffect(c)
......@@ -21,11 +21,11 @@ function c65090038.initial_effect(c)
e2:SetRange(LOCATION_MZONE)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e2:SetCountLimit(1)
e2:SetTarget(c65090033.tgtg)
e2:SetOperation(c65090033.tgop)
e2:SetTarget(c65090038.tgtg)
e2:SetOperation(c65090038.tgop)
c:RegisterEffect(e2)
end
function c65090033.target(e,tp,eg,ep,ev,re,r,rp,chk)
function c65090038.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local a=Duel.GetAttacker()
local t=Duel.GetAttackTarget()
......@@ -40,7 +40,7 @@ function c65090033.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end
function c65090033.operation(e,tp,eg,ep,ev,re,r,rp)
function c65090038.operation(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker()
local d=Duel.GetAttackTarget()
local g=Group.CreateGroup()
......@@ -52,13 +52,13 @@ function c65090033.operation(e,tp,eg,ep,ev,re,r,rp)
local rg=g:Filter(Card.IsRelateToBattle,nil)
Duel.Destroy(rg,REASON_EFFECT)
end
function c65090033.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
function c65090038.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
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
local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,1-tp,LOCATION_ONFIELD)
end
function c65090033.tgop(e,tp,eg,ep,ev,re,r,rp)
function c65090038.tgop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
local g=tc:GetColumnGroup():Filter(Card.IsControler,nil,1-tp)
......
......@@ -2,7 +2,7 @@
local m=69696918
local cm=_G["c"..m]
function cm.initial_effect(c)
cm.AddLinkProcedure(c,nil,2,99,cm.lcheck)
aux.AddLinkProcedure(c,nil,2,99,cm.lcheck)
c:EnableReviveLimit()
--extra link
local e0=Effect.CreateEffect(c)
......
......@@ -97,4 +97,4 @@ function c75646718.op(e,tp,eg,ep,ev,re,r,rp)
if cost then cost(te,tep,eg,ep,ev,re,r,rp,1) end
Duel.RaiseEvent(tc,4179255,te,0,tp,tp,Duel.GetCurrentChain())
end
endnd
\ No newline at end of file
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