Commit e04ad4c2 authored by mercury233's avatar mercury233

fix

parent 45434c7f
......@@ -98,7 +98,8 @@ function c100235001.effop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_EXTRA_ATTACK)
e1:SetCondition(c100235001.eacon)
e1:SetLabel(Duel.GetTurnCount()+tct)
e1:SetLabel(Duel.GetTurnCount())
e1:SetValue(1)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_SELF_TURN,1+tct)
c:RegisterEffect(e1)
c:RegisterFlagEffect(100235101,RESET_EVENT+RESETS_STANDARD+RESET_DISABLE+RESET_PHASE+PHASE_END,0,1+tct)
......@@ -112,7 +113,7 @@ function c100235001.effop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c100235001.eacon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnCount()==e:GetLabel()
return Duel.GetTurnCount()~=e:GetLabel()
end
function c100235001.valcheck(e,c)
local g=c:GetMaterial()
......
......@@ -32,9 +32,10 @@ end
function c100235011.efffilter(c,e,tp,eg,ep,ev,re,r,rp)
local m=_G["c"..c:GetCode()]
local te=m.discard_effect
if not te then return false end
local tg=te:GetTarget()
return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsSetCard(0x11c) and c:IsType(TYPE_MONSTER) and c:IsAbleToDeck()
and te and (not tg or tg and tg(e,tp,eg,ep,ev,re,r,rp,0))
and (not tg or tg and tg(e,tp,eg,ep,ev,re,r,rp,0))
end
function c100235011.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) and chkc:IsControler(tp) and c100235011.efffilter(chkc,e,tp,eg,ep,ev,re,r,rp) end
......
......@@ -13,7 +13,7 @@ function c100235026.initial_effect(c)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,100235026)
e1:SetTarget(c100235026.ctcost)
e1:SetCost(c100235026.ctcost)
e1:SetTarget(c100235026.cttg)
e1:SetOperation(c100235026.ctop)
c:RegisterEffect(e1)
......@@ -73,7 +73,7 @@ end
function c100235026.spop(e,tp,eg,ep,ev,re,r,rp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft<=0 then return end
local g=Duel.GetMatchingGroup(aux.NecrovalleyFilter(c100235026.spfilter),tp,LOCATION_GRAVE,0,nil,e,tp)
local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(c100235026.spfilter),tp,LOCATION_GRAVE,0,nil,e,tp)
local ct=Duel.GetMatchingGroupCount(c100235026.ctfilter,tp,0,LOCATION_MZONE,nil)
if g:GetCount()==0 or ct==0 then return end
repeat
......
......@@ -18,9 +18,9 @@ function c100411014.costfilter(c)
return c:IsSetCard(0x2093) and c:GetType()&0x81==0x81 and c:IsReleasable()
end
function c100411014.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c100411014.costfilter,1,nil) end
if chk==0 then return Duel.CheckReleaseGroupEx(tp,c100411014.costfilter,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectReleaseGroup(tp,c100411014.costfilter,1,1,nil)
local g=Duel.SelectReleaseGroupEx(tp,c100411014.costfilter,1,1,nil)
Duel.Release(g,REASON_COST)
end
function c100411014.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -20,7 +20,7 @@ function c100411015.initial_effect(c)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetRange(LOCATION_SZONE)
e3:SetCategory(CATEGORY_DAMAGE)
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e3:SetCode(EVENT_DAMAGE)
e3:SetCountLimit(1,100411015)
......@@ -44,8 +44,8 @@ function c100411015.spfilter(c,e,tp)
return c:GetType()&0x81==0x81 and c:IsSetCard(0x2093) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,true,false)
end
function c100411015.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c100411015.cfilter,1,nil,e,tp) end
local g=Duel.SelectReleaseGroup(tp,c100411015.cfilter,1,1,nil,e,tp)
if chk==0 then return Duel.CheckReleaseGroupEx(tp,c100411015.cfilter,1,nil,e,tp) end
local g=Duel.SelectReleaseGroupEx(tp,c100411015.cfilter,1,1,nil,e,tp)
Duel.Release(g,REASON_COST)
end
function c100411015.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
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