Commit b47962f2 authored by Fluorohydride's avatar Fluorohydride

Merge pull request #496 from luffySAMA/1

fix
parents 61834b16 c9325ff4
...@@ -39,7 +39,7 @@ function c21044178.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,7 +39,7 @@ function c21044178.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_CANNOT_ACTIVATE) e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetTargetRange(0,1) e1:SetTargetRange(0,1)
e1:SetValue(c21044178.aclimit) e1:SetValue(c21044178.aclimit)
e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN,1) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c21044178.aclimit(e,re,tp) function c21044178.aclimit(e,re,tp)
......
...@@ -21,6 +21,7 @@ function c21702241.initial_effect(c) ...@@ -21,6 +21,7 @@ function c21702241.initial_effect(c)
e3:SetDescription(aux.Stringid(21702241,0)) e3:SetDescription(aux.Stringid(21702241,0))
e3:SetCategory(CATEGORY_DAMAGE) e3:SetCategory(CATEGORY_DAMAGE)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e3:SetProperty(EFFECT_FLAG_CHAIN_UNIQUE)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
e3:SetCode(EVENT_CONTROL_CHANGED) e3:SetCode(EVENT_CONTROL_CHANGED)
e3:SetCondition(c21702241.damcon) e3:SetCondition(c21702241.damcon)
......
...@@ -69,6 +69,7 @@ function c22110647.descost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -69,6 +69,7 @@ function c22110647.descost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EFFECT_CANNOT_ATTACK) e1:SetCode(EFFECT_CANNOT_ATTACK)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
e:GetHandler():RegisterEffect(e1) e:GetHandler():RegisterEffect(e1)
......
...@@ -69,10 +69,10 @@ function c22842214.eqfilter(c,ec) ...@@ -69,10 +69,10 @@ function c22842214.eqfilter(c,ec)
end end
function c22842214.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) function c22842214.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(c22842214.eqfilter,tp,LOCATION_SZONE,0,1,nil,c) end if chk==0 then return Duel.IsExistingMatchingCard(c22842214.eqfilter,tp,LOCATION_SZONE,LOCATION_SZONE,1,nil,c) end
if Duel.SelectYesNo(tp,aux.Stringid(22842214,1)) then if Duel.SelectYesNo(tp,aux.Stringid(22842214,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local tc=Duel.SelectMatchingCard(tp,c22842214.eqfilter,tp,LOCATION_SZONE,0,1,1,nil,c):GetFirst() local tc=Duel.SelectMatchingCard(tp,c22842214.eqfilter,tp,LOCATION_SZONE,LOCATION_SZONE,1,1,nil,c):GetFirst()
e:SetLabelObject(tc) e:SetLabelObject(tc)
return true return true
else return false end else return false end
...@@ -81,5 +81,5 @@ function c22842214.desrepop(e,tp,eg,ep,ev,re,r,rp) ...@@ -81,5 +81,5 @@ function c22842214.desrepop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(e:GetLabelObject(),REASON_EFFECT+REASON_REPLACE) Duel.Destroy(e:GetLabelObject(),REASON_EFFECT+REASON_REPLACE)
end end
function c22842214.atcon(e) function c22842214.atcon(e)
return Duel.IsExistingMatchingCard(c22842214.eqfilter,e:GetHandlerPlayer(),LOCATION_SZONE,0,1,nil,e:GetHandler()) return Duel.IsExistingMatchingCard(c22842214.eqfilter,e:GetHandlerPlayer(),LOCATION_SZONE,LOCATION_SZONE,1,nil,e:GetHandler())
end end
...@@ -13,7 +13,7 @@ function c29228350.initial_effect(c) ...@@ -13,7 +13,7 @@ function c29228350.initial_effect(c)
end end
function c29228350.filter(c) function c29228350.filter(c)
local ec=c:GetEquipTarget() local ec=c:GetEquipTarget()
return ec and c:IsCode(48568032) and ec:IsCode(12079734) return ec and c:IsCode(48568432) and ec:IsCode(12079734)
end end
function c29228350.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c29228350.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_SZONE) and c29228350.filter(chkc) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_SZONE) and c29228350.filter(chkc) end
......
...@@ -53,7 +53,7 @@ function c47297616.tgdisable(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -53,7 +53,7 @@ function c47297616.tgdisable(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c47297616.opdisable(e,tp,eg,ep,ev,re,r,rp) function c47297616.opdisable(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsFaceup() or c:GetDefence()<500 or c:GetAttack()< 500 or not c:IsRelateToEffect(e) or Duel.GetCurrentChain()~=ev+1 then if not c:IsFaceup() or c:GetDefence()<500 or c:GetAttack()< 500 or not c:IsRelateToEffect(e) or Duel.GetCurrentChain()~=ev+1 or c:IsStatus(STATUS_BATTLE_DESTROYED) then
return return
end end
if Duel.NegateActivation(ev) then if Duel.NegateActivation(ev) then
......
--ジャンク·デストロイヤー --ジャンク·デストロイヤー
function c74860293.initial_effect(c) function c74860293.initial_effect(c)
--synchro summon --synchro summon
aux.AddSynchroProcedure(c,c74860293.tfilter,aux.NonTuner(nil),1) aux.AddSynchroProcedure(c,c74860293.tfilter,aux.NonTuner(nil),1)
c:EnableReviveLimit() c:EnableReviveLimit()
--atkup --atkup
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(74860293,0)) e1:SetDescription(aux.Stringid(74860293,0))
e1:SetCategory(CATEGORY_DESTROY) e1:SetCategory(CATEGORY_DESTROY)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(c74860293.con) e1:SetCondition(c74860293.con)
e1:SetTarget(c74860293.tg) e1:SetTarget(c74860293.tg)
e1:SetOperation(c74860293.op) e1:SetOperation(c74860293.op)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c74860293.tfilter(c) function c74860293.tfilter(c)
local code=c:GetCode() local code=c:GetCode()
return code==63977008 or code==20932152 return code==63977008 or code==20932152
end end
function c74860293.con(e,tp,eg,ep,ev,re,r,rp) function c74860293.con(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
end end
function c74860293.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c74860293.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsDestructable() end if chkc then return chkc:IsOnField() and chkc:IsDestructable() end
if chk==0 then return Duel.IsExistingTarget(Card.IsDestructable,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsDestructable,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
local mc=e:GetHandler():GetMaterialCount() local mc=e:GetHandler():GetMaterialCount()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,Card.IsDestructable,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,mc-1,nil) local g=Duel.SelectTarget(tp,Card.IsDestructable,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,mc-1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end end
function c74860293.op(e,tp,eg,ep,ev,re,r,rp) function c74860293.op(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local sg=g:Filter(Card.IsRelateToEffect,nil,e) local sg=g:Filter(Card.IsRelateToEffect,nil,e)
Duel.HintSelection(sg) Duel.Destroy(sg,REASON_EFFECT)
Duel.Destroy(sg,REASON_EFFECT) end
end
...@@ -14,7 +14,7 @@ function c81426505.confilter(c) ...@@ -14,7 +14,7 @@ function c81426505.confilter(c)
return c:IsFaceup() and c:IsSetCard(0x3d) return c:IsFaceup() and c:IsSetCard(0x3d)
end end
function c81426505.descon(e,tp,eg,ep,ev,re,r,rp) function c81426505.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c81426505.confilter,tp,LOCATION_ONFIELD,0,3,nil) return Duel.IsExistingMatchingCard(c81426505.confilter,tp,LOCATION_MZONE,0,3,nil)
end end
function c81426505.filter1(c) function c81426505.filter1(c)
return c:IsFaceup() and c:IsDestructable() return c:IsFaceup() and c:IsDestructable()
......
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