Commit e3d747ce authored by argon.sun's avatar argon.sun

fix

parent ba83c0f6
...@@ -14,7 +14,7 @@ function c2521011.initial_effect(c) ...@@ -14,7 +14,7 @@ function c2521011.initial_effect(c)
e2:SetDescription(aux.Stringid(2521011,0)) e2:SetDescription(aux.Stringid(2521011,0))
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_SUMMON_SUCCESS) e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CHAIN_UNIQUE)
e2:SetCountLimit(1) e2:SetCountLimit(1)
e2:SetCost(c2521011.setcost) e2:SetCost(c2521011.setcost)
e2:SetTarget(c2521011.settg) e2:SetTarget(c2521011.settg)
......
...@@ -21,7 +21,7 @@ function c35842855.initial_effect(c) ...@@ -21,7 +21,7 @@ function c35842855.initial_effect(c)
e3:SetCategory(CATEGORY_DESTROY+CATEGORY_DAMAGE) e3:SetCategory(CATEGORY_DESTROY+CATEGORY_DAMAGE)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e3:SetCode(EVENT_SPSUMMON_SUCCESS) e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CHAIN_UNIQUE)
e3:SetCost(c35842855.descost) e3:SetCost(c35842855.descost)
e3:SetTarget(c35842855.destg) e3:SetTarget(c35842855.destg)
e3:SetOperation(c35842855.desop) e3:SetOperation(c35842855.desop)
......
...@@ -6,7 +6,7 @@ function c56105047.initial_effect(c) ...@@ -6,7 +6,7 @@ function c56105047.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
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:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CHAIN_UNIQUE)
e1:SetCost(c56105047.spcost) e1:SetCost(c56105047.spcost)
e1:SetTarget(c56105047.sptg) e1:SetTarget(c56105047.sptg)
e1:SetOperation(c56105047.spop) e1:SetOperation(c56105047.spop)
......
...@@ -11,7 +11,6 @@ function c58242947.initial_effect(c) ...@@ -11,7 +11,6 @@ function c58242947.initial_effect(c)
e1:SetTarget(c58242947.target) e1:SetTarget(c58242947.target)
e1:SetOperation(c58242947.operation) e1:SetOperation(c58242947.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
c58242947[0]=nil
end end
function c58242947.filter(c) function c58242947.filter(c)
return c:GetType()==0x4 and c:IsAbleToRemoveAsCost() and c:CheckActivateEffect(false,true,false)~=nil return c:GetType()==0x4 and c:IsAbleToRemoveAsCost() and c:CheckActivateEffect(false,true,false)~=nil
...@@ -23,12 +22,12 @@ function c58242947.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -23,12 +22,12 @@ function c58242947.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(58242947,1)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(58242947,1))
local g=Duel.SelectMatchingCard(tp,c58242947.filter,tp,LOCATION_GRAVE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c58242947.filter,tp,LOCATION_GRAVE,0,1,1,nil)
local te=g:GetFirst():CheckActivateEffect(false,true,true) local te=g:GetFirst():CheckActivateEffect(false,true,true)
c58242947[0]=te c58242947[Duel.GetCurrentChain()]=te
g:AddCard(c) g:AddCard(c)
Duel.Remove(g,POS_FACEUP,REASON_COST) Duel.Remove(g,POS_FACEUP,REASON_COST)
end end
function c58242947.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c58242947.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local te=c58242947[0] local te=c58242947[Duel.GetCurrentChain()]
if chkc then if chkc then
local tg=te:GetTarget() local tg=te:GetTarget()
return tg(e,tp,eg,ep,ev,re,r,rp,0,true) return tg(e,tp,eg,ep,ev,re,r,rp,0,true)
...@@ -41,7 +40,7 @@ function c58242947.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -41,7 +40,7 @@ function c58242947.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if tg then tg(e,tp,eg,ep,ev,re,r,rp,1) end if tg then tg(e,tp,eg,ep,ev,re,r,rp,1) end
end end
function c58242947.operation(e,tp,eg,ep,ev,re,r,rp) function c58242947.operation(e,tp,eg,ep,ev,re,r,rp)
local te=c58242947[0] local te=c58242947[Duel.GetCurrentChain()]
if not te then return end if not te then return end
local op=te:GetOperation() local op=te:GetOperation()
if op then op(e,tp,eg,ep,ev,re,r,rp) end if op then op(e,tp,eg,ep,ev,re,r,rp) end
......
--ZW-獣王獅子武装 --ZW-獣王獅子武装
function c60992464.initial_effect(c) function c60992364.initial_effect(c)
--xyz summon --xyz summon
aux.AddXyzProcedure(c,aux.XyzFilterFunction(c,5),2) aux.AddXyzProcedure(c,aux.XyzFilterFunction(c,5),2)
c:EnableReviveLimit() c:EnableReviveLimit()
...@@ -11,66 +11,66 @@ function c60992464.initial_effect(c) ...@@ -11,66 +11,66 @@ function c60992464.initial_effect(c)
--search --search
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetDescription(aux.Stringid(60992464,0)) e2:SetDescription(aux.Stringid(60992364,0))
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCountLimit(1) e2:SetCountLimit(1)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCost(c60992464.cost) e2:SetCost(c60992364.cost)
e2:SetTarget(c60992464.target) e2:SetTarget(c60992364.target)
e2:SetOperation(c60992464.operation) e2:SetOperation(c60992364.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--equip --equip
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(60992464,1)) e3:SetDescription(aux.Stringid(60992364,1))
e3:SetType(EFFECT_TYPE_IGNITION) e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetCategory(CATEGORY_EQUIP) e3:SetCategory(CATEGORY_EQUIP)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetTarget(c60992464.eqtg) e3:SetTarget(c60992364.eqtg)
e3:SetOperation(c60992464.eqop) e3:SetOperation(c60992364.eqop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
-- --
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(60992464,2)) e4:SetDescription(aux.Stringid(60992364,2))
e4:SetType(EFFECT_TYPE_QUICK_O) e4:SetType(EFFECT_TYPE_QUICK_O)
e4:SetCode(EVENT_FREE_CHAIN) e4:SetCode(EVENT_FREE_CHAIN)
e4:SetRange(LOCATION_SZONE) e4:SetRange(LOCATION_SZONE)
e4:SetCondition(c60992464.atcon) e4:SetCondition(c60992364.atcon)
e4:SetCost(c60992464.atcost) e4:SetCost(c60992364.atcost)
e4:SetTarget(c60992464.attg) e4:SetTarget(c60992364.attg)
e4:SetOperation(c60992464.atop) e4:SetOperation(c60992364.atop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c60992464.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c60992364.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end end
function c60992464.thfilter(c) function c60992364.thfilter(c)
return c:IsSetCard(0x7e) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x7e) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c60992464.target(e,tp,eg,ep,ev,re,r,rp,chk) function c60992364.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c60992464.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c60992364.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function c60992464.operation(e,tp,eg,ep,ev,re,r,rp) function c60992364.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c60992464.thfilter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c60992364.thfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
function c60992464.filter(c) function c60992364.filter(c)
return c:IsFaceup() and c:IsSetCard(0x7f) return c:IsFaceup() and c:IsSetCard(0x7f)
end end
function c60992464.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c60992364.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c60992464.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c60992364.filter(chkc) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingTarget(c60992464.filter,tp,LOCATION_MZONE,0,1,nil) end and Duel.IsExistingTarget(c60992364.filter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
Duel.SelectTarget(tp,c60992464.filter,tp,LOCATION_MZONE,0,1,1,nil) Duel.SelectTarget(tp,c60992364.filter,tp,LOCATION_MZONE,0,1,1,nil)
end end
function c60992464.eqop(e,tp,eg,ep,ev,re,r,rp) function c60992364.eqop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
...@@ -83,7 +83,7 @@ function c60992464.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -83,7 +83,7 @@ function c60992464.eqop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_EQUIP_LIMIT) e1:SetCode(EFFECT_EQUIP_LIMIT)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0x1fe0000)
e1:SetValue(c60992464.eqlimit) e1:SetValue(c60992364.eqlimit)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--atkup --atkup
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
...@@ -93,23 +93,23 @@ function c60992464.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -93,23 +93,23 @@ function c60992464.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+0x1fe0000) e2:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c60992464.eqlimit(e,c) function c60992364.eqlimit(e,c)
return c:IsSetCard(0x7f) return c:IsSetCard(0x7f)
end end
function c60992464.atcon(e,tp,eg,ep,ev,re,r,rp) function c60992364.atcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_BATTLE and Duel.GetCurrentChain()==0 return Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_BATTLE and Duel.GetCurrentChain()==0
end end
function c60992464.atcost(e,tp,eg,ep,ev,re,r,rp,chk) function c60992364.atcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
e:SetLabelObject(e:GetHandler():GetEquipTarget()) e:SetLabelObject(e:GetHandler():GetEquipTarget())
Duel.SendtoGrave(e:GetHandler(),REASON_COST) Duel.SendtoGrave(e:GetHandler(),REASON_COST)
end end
function c60992464.attg(e,tp,eg,ep,ev,re,r,rp,chk) function c60992364.attg(e,tp,eg,ep,ev,re,r,rp,chk)
local eqc=e:GetHandler():GetEquipTarget() local eqc=e:GetHandler():GetEquipTarget()
if chk==0 then return eqc and eqc:GetAttackedCount()==1 and eqc:GetEffectCount(EFFECT_EXTRA_ATTACK)==0 end if chk==0 then return eqc and eqc:GetAttackedCount()==1 and eqc:GetEffectCount(EFFECT_EXTRA_ATTACK)==0 end
Duel.SetTargetCard(e:GetLabelObject()) Duel.SetTargetCard(e:GetLabelObject())
end end
function c60992464.atop(e,tp,eg,ep,ev,re,r,rp) function c60992364.atop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) then if tc:IsFaceup() and tc:IsRelateToEffect(e) then
......
...@@ -5,7 +5,7 @@ function c75132317.initial_effect(c) ...@@ -5,7 +5,7 @@ function c75132317.initial_effect(c)
e1:SetDescription(aux.Stringid(75132317,0)) e1:SetDescription(aux.Stringid(75132317,0))
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_TO_GRAVE) e1:SetCode(EVENT_TO_GRAVE)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CHAIN_UNIQUE) e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c75132317.setcon) e1:SetCondition(c75132317.setcon)
...@@ -36,7 +36,8 @@ function c75132317.filter(c) ...@@ -36,7 +36,8 @@ function c75132317.filter(c)
return c:IsSetCard(0x7c) and c:IsType(TYPE_TRAP) and c:IsSSetable() return c:IsSetCard(0x7c) and c:IsType(TYPE_TRAP) and c:IsSSetable()
end end
function c75132317.settg(e,tp,eg,ep,ev,re,r,rp,chk) function c75132317.settg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c75132317.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return not e:GetHandler():IsStatus(STATUS_CHAINING)
and Duel.IsExistingMatchingCard(c75132317.filter,tp,LOCATION_DECK,0,1,nil) end
end end
function c75132317.setop(e,tp,eg,ep,ev,re,r,rp) function c75132317.setop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
......
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