Commit e0f82804 authored by POLYMER's avatar POLYMER

fix

parent cf0612dc
......@@ -2276,27 +2276,6 @@
60001141 0
60001142 0
60001143 0
#「天花乱漫」系列 - Justfish
14001201 0
14001202 0
14001203 0
14001204 0
14001205 0
14001206 0
14001207 0
14001208 0
14001209 0
14001210 0
14001211 0
14001212 0
14001213 0
14001214 0
14001215 0
14001216 0
14001217 0
14001218 0
14001219 0
14001220 0
#「祭礼」系列 - 煌武院悠阳
3050 0
3051 0
......@@ -4807,7 +4786,6 @@
14010248 0
14010008 0
14010155 0
79029208 0
72100026 0
872100001 0
117981478 0
......@@ -4903,27 +4881,6 @@
72100033 0
72100038 0
72100034 0
79029011 0
79029034 0
79029078 0
79029093 0
79029106 0
79029111 0
79029112 0
79029117 0
79029122 0
79029157 0
79029177 0
79029197 0
79029199 0
79029207 0
79029212 0
79029230 0
79029182 0
79029277 0
79029290 0
79029297 0
79029298 0
79029500 0
79029501 0
79029502 0
......@@ -5201,16 +5158,6 @@
33403501 0
14010223 0
130001245 0
79029090 0
79029112 0
79029117 0
79029122 0
79029157 0
79029197 0
79029011 0
79029182 0
79029208 0
79029207 0
72100020 0
72100023 0
111146448 0
......@@ -5274,9 +5221,6 @@
14001006 0
14010180 0
65010103 0
79029078 0
79029136 0
79029199 0
88888888 0
114431144 0
46250018 0
......@@ -6768,7 +6712,6 @@
14010167 0
14010248 0
14010008 0
79029208 0
872100001 0
117981478 0
14000701 0
......@@ -6792,7 +6735,6 @@
14010229 0
14010230 0
14010231 0
79029208 0
82208103 0
130002101 0
130002102 0
......
No preview for this file type
--虚数魔术
function c22021790.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,22021790+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c22021790.target)
e1:SetOperation(c22021790.activate)
c:RegisterEffect(e1)
end
function c22021790.filter(c)
return (c:IsRace(RACE_SPELLCASTER) or c:IsType(TYPE_SPELL)) and c:IsAbleToRemove()
end
function c22021790.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c22021790.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_DECK)
end
function c22021790.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c22021790.filter,tp,LOCATION_DECK,0,1,1,nil)
local tg=g:GetFirst()
if tg==nil then return end
Duel.Remove(tg,POS_FACEUP,REASON_EFFECT)
if not e:IsHasType(EFFECT_TYPE_ACTIVATE) then return end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetRange(LOCATION_REMOVED)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1:SetCountLimit(1)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN,1)
e1:SetCondition(c22021790.thcon)
e1:SetOperation(c22021790.thop)
e1:SetLabel(0)
tg:RegisterEffect(e1)
end
function c22021790.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c22021790.thop(e,tp,eg,ep,ev,re,r,rp)
local ct=e:GetLabel()
e:GetHandler():SetTurnCounter(ct+1)
if ct==0 then
Duel.SendtoHand(e:GetHandler(),nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,e:GetHandler())
else e:SetLabel(1) end
end
--执棋者 -方舟骑士-
function c29078975.initial_effect(c)
--aux.AddCodeList(c,29065502)
--splimit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(c29078975.splimit)
c:RegisterEffect(e1)
--tohand
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(29078975,0))
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,29078975)
e2:SetCost(c29078975.thco)
e2:SetTarget(c29078975.thtg)
e2:SetOperation(c29078975.thop)
c:RegisterEffect(e2)
--remove
local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_REMOVE)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_BATTLE_DAMAGE)
e3:SetRange(LOCATION_HAND+LOCATION_MZONE+LOCATION_GRAVE)
e3:SetCost(aux.bfgcost)
e3:SetCondition(c29078975.rmcon)
e3:SetTarget(c29078975.rmtg)
e3:SetOperation(c29078975.rmop)
c:RegisterEffect(e3)
end
function c29078975.splimit(e,se,sp,st)
return se:IsHasType(EFFECT_TYPE_ACTIONS)
end
--e3
function c29078975.rmcon(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetAttacker()
return ep==tp and Duel.GetAttackTarget()==nil and tc:IsAbleToRemove(1-tp,POS_FACEDOWN,REASON_RULE)
end
function c29078975.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=Duel.GetAttacker()
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,tc,1,0,0)
end
function c29078975.rmop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetAttacker()
if tc:IsRelateToBattle() then
Duel.Remove(tc,POS_FACEDOWN,REASON_RULE,1-tp)
end
end
--e2
function c29078975.thco(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,600) end
Duel.PayLPCost(tp,600)
end
function c29078975.thfilter(c)
return c:IsSetCard(0x87af) and c:IsAbleToHand() and not Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,nil,c:GetCode())
end
function c29078975.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c29078975.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c29078975.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c29078975.thfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
\ No newline at end of file
......@@ -71,7 +71,7 @@ function c60001168.wxop(e,tp,eg,ep,ev,re,r,rp)
local g2=Duel.GetMatchingGroup(c60001168.filter,tp,LOCATION_DECK,0,nil,tp,sg:GetFirst():GetCode())
if Duel.SendtoHand(sg,nil,REASON_EFFECT)~=0 and c:GetFlagEffect(60001168)>0 and (c:IsLocation(LOCATION_SZONE) or c:IsPreviousLocation(LOCATION_SZONE)) and #g2>0 and Duel.SelectYesNo(tp,aux.Stringid(60001168,2)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELECT)
local tc=g2:Select(tp,1,1,nil)
local tc=g2:Select(tp,1,1,nil):GetFirst()
if tc then
if tc:IsType(TYPE_MONSTER) then
Duel.MoveToField(tc,tp,tp,LOCATION_MZONE,POS_FACEUP,true)
......
......@@ -66,19 +66,19 @@ function c60001170.wxop(e,tp,eg,ep,ev,re,r,rp)
local sg=Group.CreateGroup()
local c=e:GetHandler()
if Duel.NegateActivation(ev) and c:GetFlagEffect(60001168)>0 and (c:IsLocation(LOCATION_SZONE) or c:IsPreviousLocation(LOCATION_SZONE)) and (#g1>0 or #g2>0 or #g3>0) and Duel.SelectYesNo(tp,aux.Stringid(60001170,2)) then
if #g1~=0 and Duel.SelectYesNo(tp,aux.Stringid(60001170,3)) then
if #g1~=0 and Duel.SelectYesNo(tp,aux.Stringid(60001170,4)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local sg1=g1:Select(tp,1,1,nil)
Duel.HintSelection(sg1)
sg:Merge(sg1)
end
if #g2~=0 and Duel.SelectYesNo(tp,aux.Stringid(60001170,4)) then
if #g2~=0 and Duel.SelectYesNo(tp,aux.Stringid(60001170,5)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local sg2=g2:Select(tp,1,1,nil)
Duel.HintSelection(sg2)
sg:Merge(sg2)
end
if #g3~=0 and Duel.SelectYesNo(tp,aux.Stringid(60001170,5)) then
if #g3~=0 and Duel.SelectYesNo(tp,aux.Stringid(60001170,3)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local sg3=g3:RandomSelect(tp,1)
sg:Merge(sg3)
......
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