Commit c48b90ba authored by mercury233's avatar mercury233

fix

parent 3c7fa1e8
...@@ -57,7 +57,7 @@ function c100266041.rmcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +57,7 @@ function c100266041.rmcon(e,tp,eg,ep,ev,re,r,rp)
local bc=c:GetBattleTarget() local bc=c:GetBattleTarget()
if not bc then return false end if not bc then return false end
e:SetLabelObject(bc) e:SetLabelObject(bc)
return c:GetLinkedGroupCount()>0 and c:IsStatus(STATUS_OPPO_BATTLE) and bc:IsControler(1-tp) and bc:IsRelateToBattle() return c:GetMutualLinkedGroupCount()>0 and c:IsStatus(STATUS_OPPO_BATTLE) and bc:IsControler(1-tp) and bc:IsRelateToBattle()
end end
function c100266041.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) function c100266041.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
local bc=e:GetLabelObject() local bc=e:GetLabelObject()
...@@ -77,7 +77,7 @@ function c100266041.descon(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,7 +77,7 @@ function c100266041.descon(e,tp,eg,ep,ev,re,r,rp)
local bc=c:GetBattleTarget() local bc=c:GetBattleTarget()
if not bc then return false end if not bc then return false end
e:SetLabelObject(bc) e:SetLabelObject(bc)
return c:GetLinkedGroupCount()==0 and c:IsStatus(STATUS_OPPO_BATTLE) and bc:IsControler(1-tp) and bc:IsRelateToBattle() return c:GetMutualLinkedGroupCount()==0 and c:IsStatus(STATUS_OPPO_BATTLE) and bc:IsControler(1-tp) and bc:IsRelateToBattle()
end end
function c100266041.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c100266041.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local bc=e:GetLabelObject() local bc=e:GetLabelObject()
......
...@@ -52,7 +52,7 @@ function c100266042.atkcon(e) ...@@ -52,7 +52,7 @@ function c100266042.atkcon(e)
end end
function c100266042.chcon(e,tp,eg,ep,ev,re,r,rp) function c100266042.chcon(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
return ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE and e:GetHandler():GetLinkedGroupCount()>0 and Duel.GetTurnPlayer()==tp return ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE and e:GetHandler():GetMutualLinkedGroupCount()>0 and Duel.GetTurnPlayer()==tp
end end
function c100266042.chfilter(c) function c100266042.chfilter(c)
return c:IsFaceup() and c:IsSetCard(0x24b) and c:GetSequence()<5 return c:IsFaceup() and c:IsSetCard(0x24b) and c:GetSequence()<5
......
...@@ -4,9 +4,11 @@ ...@@ -4,9 +4,11 @@
function c100266044.initial_effect(c) function c100266044.initial_effect(c)
--activate --activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCountLimit(1,100266044+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c100266044.target) e1:SetTarget(c100266044.target)
e1:SetOperation(c100266044.activate) e1:SetOperation(c100266044.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -25,7 +27,8 @@ function c100266044.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -25,7 +27,8 @@ function c100266044.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c100266044.filter,tp,LOCATION_MZONE,0,1,nil,tp) if chk==0 then return Duel.IsExistingTarget(c100266044.filter,tp,LOCATION_MZONE,0,1,nil,tp)
and Duel.IsExistingMatchingCard(c100266044.gfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c100266044.gfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.SelectTarget(tp,c100266044.filter,tp,LOCATION_MZONE,0,1,1,nil,tp) local g=Duel.SelectTarget(tp,c100266044.filter,tp,LOCATION_MZONE,0,1,1,nil,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
end end
function c100266044.activate(e,tp,eg,ep,ev,re,r,rp) function c100266044.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
...@@ -35,7 +38,7 @@ function c100266044.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,7 +38,7 @@ function c100266044.activate(e,tp,eg,ep,ev,re,r,rp)
if zone==0 or upbound<=0 then return end if zone==0 or upbound<=0 then return end
if Duel.IsPlayerAffectedByEffect(tp,59822133) then upbound=1 end if Duel.IsPlayerAffectedByEffect(tp,59822133) then upbound=1 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c100266044.gfilter,tp,LOCATION_GRAVE,0,1,upbound,nil,e,tp) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c100266044.gfilter),tp,LOCATION_GRAVE,0,1,upbound,nil,e,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
local fid=e:GetHandler():GetFieldID() local fid=e:GetHandler():GetFieldID()
local tc=g:GetFirst() local tc=g:GetFirst()
......
...@@ -71,7 +71,8 @@ function c100266045.mvfilter(c) ...@@ -71,7 +71,8 @@ function c100266045.mvfilter(c)
return c:IsFaceup() and c:IsSetCard(0x24b) return c:IsFaceup() and c:IsSetCard(0x24b)
end end
function c100266045.mvtg(e,tp,eg,ep,ev,re,r,rp,chk) function c100266045.mvtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c100266045.mvfilter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c100266045.mvfilter,tp,LOCATION_MZONE,0,1,nil)
and Duel.GetLocationCount(tp,LOCATION_MZONE,PLAYER_NONE,0)>0 end
end end
function c100266045.mvop(e,tp,eg,ep,ev,re,r,rp) function c100266045.mvop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE,PLAYER_NONE,0)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE,PLAYER_NONE,0)<=0 then return end
......
...@@ -10,7 +10,6 @@ function c100424004.initial_effect(c) ...@@ -10,7 +10,6 @@ function c100424004.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,100424004+EFFECT_COUNT_CODE_OATH) e1:SetCountLimit(1,100424004+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c100424004.condition)
e1:SetTarget(c100424004.target) e1:SetTarget(c100424004.target)
e1:SetOperation(c100424004.activate) e1:SetOperation(c100424004.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -24,9 +23,6 @@ function c100424004.initial_effect(c) ...@@ -24,9 +23,6 @@ function c100424004.initial_effect(c)
e2:SetOperation(c100424004.gainop) e2:SetOperation(c100424004.gainop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c100424004.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c100424004.filter(c) function c100424004.filter(c)
return c:IsCode(10000010) and c:IsAbleToHand() return c:IsCode(10000010) and c:IsAbleToHand()
end end
......
...@@ -8,7 +8,7 @@ function c100424005.initial_effect(c) ...@@ -8,7 +8,7 @@ function c100424005.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CANNOT_INACTIVATE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CANNOT_NEGATE) e1:SetProperty(EFFECT_FLAG_CANNOT_INACTIVATE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CANNOT_NEGATE)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER)
e1:SetTarget(c100424005.target) e1:SetTarget(c100424005.target)
e1:SetOperation(c100424005.activate) e1:SetOperation(c100424005.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
......
...@@ -22,7 +22,7 @@ function c100424007.initial_effect(c) ...@@ -22,7 +22,7 @@ function c100424007.initial_effect(c)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END)
e2:SetCondition(c100424007.atkcon) e2:SetCondition(c100424007.atkcon)
e2:SetCost(c100424007.atkcost) e2:SetCost(c100424007.atkcost)
e2:SetTarget(c100424007.atktg) e2:SetTarget(c100424007.atktg)
......
...@@ -11,6 +11,7 @@ function c100424017.initial_effect(c) ...@@ -11,6 +11,7 @@ function c100424017.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--spsummon --spsummon
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(100424017,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
...@@ -24,6 +25,7 @@ function c100424017.initial_effect(c) ...@@ -24,6 +25,7 @@ function c100424017.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--atk limit --atk limit
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(100424017,1))
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e3:SetCode(EVENT_SPSUMMON_SUCCESS) e3:SetCode(EVENT_SPSUMMON_SUCCESS)
...@@ -32,6 +34,7 @@ function c100424017.initial_effect(c) ...@@ -32,6 +34,7 @@ function c100424017.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--Negate --Negate
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(100424017,2))
e4:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY) e4:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY)
e4:SetType(EFFECT_TYPE_QUICK_O) e4:SetType(EFFECT_TYPE_QUICK_O)
e4:SetCode(EVENT_CHAINING) e4:SetCode(EVENT_CHAINING)
......
...@@ -67,7 +67,8 @@ function c100424019.damfilter(c) ...@@ -67,7 +67,8 @@ function c100424019.damfilter(c)
return c:IsSetCard(0x13) and c:IsFaceup() return c:IsSetCard(0x13) and c:IsFaceup()
end end
function c100424019.damop(e,tp,eg,ep,ev,re,r,rp) function c100424019.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,100424019)
local ct=Duel.GetMatchingGroupCount(c100424019.damfilter,tp,LOCATION_MZONE,0,nil) local ct=Duel.GetMatchingGroupCount(c100424019.damfilter,tp,LOCATION_MZONE,0,nil)
if ct==0 then return end
Duel.Hint(HINT_CARD,0,100424019)
Duel.Damage(1-tp,ct*100,REASON_EFFECT) Duel.Damage(1-tp,ct*100,REASON_EFFECT)
end end
...@@ -119,7 +119,7 @@ function c100424022.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -119,7 +119,7 @@ function c100424022.desop(e,tp,eg,ep,ev,re,r,rp)
if tc then if tc then
Duel.HintSelection(g) Duel.HintSelection(g)
if Duel.Destroy(tc,REASON_EFFECT)~=0 then if Duel.Destroy(tc,REASON_EFFECT)~=0 then
local atk=tc:GetTextAttack() local atk=tc:GetBaseAttack()
if atk>0 then if atk>0 then
Duel.Damage(1-tp,atk,REASON_EFFECT) Duel.Damage(1-tp,atk,REASON_EFFECT)
end end
......
...@@ -21,7 +21,7 @@ function c100424031.initial_effect(c) ...@@ -21,7 +21,7 @@ function c100424031.initial_effect(c)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END) e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_SSET+TIMING_MAIN_END)
e2:SetCountLimit(1,100424131) e2:SetCountLimit(1,100424131)
e2:SetCondition(c100424031.spcon2) e2:SetCondition(c100424031.spcon2)
e2:SetCost(c100424031.spcost2) e2:SetCost(c100424031.spcost2)
......
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