Commit 1c0074a7 authored by mercury233's avatar mercury233

fix

parent 1cdd59dc
...@@ -84,6 +84,6 @@ function c101010003.damcon3(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,6 +84,6 @@ function c101010003.damcon3(e,tp,eg,ep,ev,re,r,rp)
local ct=g:GetSum(Card.GetLink)*1000 local ct=g:GetSum(Card.GetLink)*1000
return Duel.GetBattleDamage(tp)<=ct return Duel.GetBattleDamage(tp)<=ct
end end
function c101010003.damop2(e,tp,eg,ep,ev,re,r,rp) function c101010003.damop3(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangeBattleDamage(tp,0) Duel.ChangeBattleDamage(tp,0)
end end
...@@ -34,8 +34,8 @@ function c101010041.spcon1(e,tp,eg,ep,ev,re,r,rp) ...@@ -34,8 +34,8 @@ function c101010041.spcon1(e,tp,eg,ep,ev,re,r,rp)
end end
function c101010041.spcost1(e,tp,eg,ep,ev,re,r,rp,chk) function c101010041.spcost1(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:GetFlagEffect(101010041)==0 end if chk==0 then return c:GetFlagEffect(101010041+100)==0 end
c:RegisterFlagEffect(101010041,RESET_CHAIN,0,1) c:RegisterFlagEffect(101010041+100,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE_CAL,0,1)
end end
function c101010041.spfilter1(c,e,tp,ec) function c101010041.spfilter1(c,e,tp,ec)
return c:IsSetCard(0x12b) and c:GetEquipTarget()==ec and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x12b) and c:GetEquipTarget()==ec and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
...@@ -71,7 +71,7 @@ function c101010041.spop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,7 +71,7 @@ function c101010041.spop1(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e1:SetValue(1) e1:SetValue(1)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE)
tc:RegisterEffect(e1) c:RegisterEffect(e1)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_PRE_BATTLE_DAMAGE) e3:SetCode(EVENT_PRE_BATTLE_DAMAGE)
......
...@@ -82,7 +82,7 @@ function c101010053.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -82,7 +82,7 @@ function c101010053.eqop(e,tp,eg,ep,ev,re,r,rp)
local ft=math.min((Duel.GetLocationCount(tp,LOCATION_SZONE)),3) local ft=math.min((Duel.GetLocationCount(tp,LOCATION_SZONE)),3)
local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(c101010053.eqfilter),tp,LOCATION_GRAVE,0,nil) local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(c101010053.eqfilter),tp,LOCATION_GRAVE,0,nil)
if not c:IsRelateToEffect(e) or not tc:IsRelateToEffect(e) or ft<=0 or g:GetCount()<=0 then return end if not c:IsRelateToEffect(e) or not tc:IsRelateToEffect(e) or ft<=0 or g:GetCount()<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
local sg=g:SelectSubGroup(tp,aux.dncheck,false,1,ft) local sg=g:SelectSubGroup(tp,aux.dncheck,false,1,ft)
if sg and sg:GetCount()>0 then if sg and sg:GetCount()>0 then
local sc=sg:GetFirst() local sc=sg:GetFirst()
......
...@@ -44,7 +44,7 @@ end ...@@ -44,7 +44,7 @@ end
function c101010069.activate(e,tp,eg,ep,ev,re,r,rp) function c101010069.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
if g:GetCount()==2 then if g:GetCount()==2 then
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
end end
end end
function c101010069.spcon(e,tp,eg,ep,ev,re,r,rp) function c101010069.spcon(e,tp,eg,ep,ev,re,r,rp)
......
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