Commit fe150f4b authored by tsubaki's avatar tsubaki

fix 5g

parent cc068293
No preview for this file type
No preview for this file type
......@@ -108,7 +108,7 @@ function s.thfilter(c,atk)
end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and s.tdfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(s.tdfilter,tp,LOCATION_REMOVED,0,2,nil) and Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil,0) end
if chk==0 then return Duel.IsExistingTarget(s.tdfilter,tp,LOCATION_REMOVED,0,2,nil) and Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil,5000) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectTarget(tp,s.tdfilter,tp,LOCATION_REMOVED,0,2,2,nil)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,#g,0,0)
......
......@@ -2,12 +2,12 @@
local s,id=GetID()
function s.initial_effect(c)
-- 同调召唤
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsType,TYPE_TUNER),aux.FilterBoolFunction(Card.IsSetCard,0x208),1)
aux.AddSynchroProcedure(c,nil,aux.NonTuner(Card.IsSetCard,0x208),1)
c:EnableReviveLimit()
-- ①:自己基本分比对方高的场合
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(0,LOCATION_MZONE)
......@@ -20,7 +20,7 @@ function s.initial_effect(c)
-- ②:自己基本分比对方低的场合
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE)
e3:SetRange(LOCATION_MZONE)
e3:SetTargetRange(0,LOCATION_MZONE)
......
......@@ -21,7 +21,7 @@ function c23150.initial_effect(c)
e2:SetCategory(CATEGORY_DAMAGE)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,23150)
e2:SetCountLimit(1,23151)
e2:SetCost(c23150.cost)
e2:SetTarget(c23150.target)
e2:SetOperation(c23150.operation)
......@@ -47,7 +47,7 @@ function c23150.setop1(e,tp,eg,ep,ev,re,r,rp)
local maxct=Duel.GetLocationCount(tp,LOCATION_MZONE)
local smct=0
if not Duel.IsPlayerCanSpecialSummonMonster(tp,231500,0,0x4011,500,2000,10,RACE_ROCK,ATTRIBUTE_EARTH) then return end
while Duel.IsCanRemoveCounter(tp,1,0,0x128a,2,REASON_COST) and maxct>0 do
while Duel.IsCanRemoveCounter(tp,1,0,0x128a,2,REASON_COST) and maxct>0 and Duel.SelectYesNo(tp,aux.Stringid(23150,2)) do
Duel.RemoveCounter(tp,1,0,0x128a,2,REASON_COST)
local token=Duel.CreateToken(tp,231500)
Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP)
......
......@@ -48,7 +48,7 @@ function c25068.initial_effect(c)
c25068.global_check=true
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_BATTLE_DESTROYED)
ge1:SetCode(EVENT_BATTLED)
ge1:SetOperation(c25068.checkop)
Duel.RegisterEffect(ge1,0)
end
......@@ -56,10 +56,11 @@ end
function c25068.checkop(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker()
local at=Duel.GetAttackTarget()
if a:IsStatus(STATUS_BATTLE_DESTROYED) and at:IsStatus(STATUS_BATTLE_DESTROYED) then return end
local tc=a
local tc
if at:IsStatus(STATUS_BATTLE_DESTROYED) then tc=a end
if a:IsStatus(STATUS_BATTLE_DESTROYED) then tc=at end
tc:RegisterFlagEffect(25068,RESET_EVENT+0x1fe0000,0,1)
if a:IsStatus(STATUS_BATTLE_DESTROYED) and at:IsStatus(STATUS_BATTLE_DESTROYED) then return end
tc:RegisterFlagEffect(25068,RESET_EVENT+0x1fe0000,0,0)
end
function c25068.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
......@@ -78,8 +79,7 @@ function c25068.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetEquipTarget():IsPosition(POS_FACEUP_ATTACK)
end
function c25068.desfilter(c)
local ct=c:GetFlagEffect(25068)
return c:IsDestructable() and ct>0
return c:IsDestructable() and c:GetFlagEffect(25068)>0
end
function c25068.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsDestructable() 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