Commit 0f823555 authored by POLYMER's avatar POLYMER

fix

parent 28a17d16
......@@ -159,7 +159,7 @@ function s.seqtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
e:SetLabel(seq)
Duel.Hint(HINT_ZONE,tp,flag)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,1-tp,LOCATION_ONFIELD)
--Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,1-tp,LOCATION_ONFIELD)
end
function s.checkin(tab,val)
for _,v in ipairs(tab) do
......
......@@ -121,9 +121,10 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp)
if #sg>0 and Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)>0 then
local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(s.tdfilter),tp,LOCATION_GRAVE+LOCATION_REMOVED,0,nil)
local ct=g:GetClassCount(Card.GetCode)
local sg=g:SelectSubGroup(tp,aux.dncheck,1,ct)
if #sg>0 then
Duel.SendtoDeck(sg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
local sg2=g:SelectSubGroup(tp,aux.dncheck,1,ct)
if #sg2>0 then
Duel.HintSelection(sg2)
Duel.SendtoDeck(sg2,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
end
end
end
......
......@@ -44,7 +44,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(s.atkfilter)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x6f52))
e1:SetValue(s.atkval)
if Duel.GetTurnPlayer()==tp then
e1:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN,2)
......@@ -69,9 +69,9 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e4:SetTargetRange(0,LOCATION_MZONE)
e4:SetCondition(s.atkcon)
Duel.RegisterEffect(e4,tp)
local e4=e3:Clone()
e4:SetCode(EFFECT_MUST_ATTACK_MONSTER)
e4:SetValue(s.atklimit)
local e5=e4:Clone()
e5:SetCode(EFFECT_MUST_ATTACK_MONSTER)
e5:SetValue(s.atklimit)
Duel.RegisterEffect(e5,tp)
end
local e6=Effect.CreateEffect(e:GetHandler())
......@@ -82,12 +82,12 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e6:SetValue(s.aclimit)
Duel.RegisterEffect(e6,tp)
end
function s.atkfilter(e,c)
function s.atkfilter(c)
return c:IsSetCard(0x6f52) and c:IsFaceup()
end
function s.atkval(e,c)
local ct=Duel.GetMatchingGroupCount(aux.TRUE,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil)
return ct*300
return ct*100
end
function s.aclimit(e,re,tp)
return not re:GetHandler():IsSetCard(0x6f52)
......
......@@ -44,7 +44,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(s.atkfilter)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x6f52))
e1:SetValue(s.atkval)
if Duel.GetTurnPlayer()==tp then
e1:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN,2)
......@@ -69,9 +69,9 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e4:SetTargetRange(0,LOCATION_MZONE)
e4:SetCondition(s.atkcon)
Duel.RegisterEffect(e4,tp)
local e4=e3:Clone()
e4:SetCode(EFFECT_MUST_ATTACK_MONSTER)
e4:SetValue(s.atklimit)
local e5=e4:Clone()
e5:SetCode(EFFECT_MUST_ATTACK_MONSTER)
e5:SetValue(s.atklimit)
Duel.RegisterEffect(e5,tp)
end
local e6=Effect.CreateEffect(e:GetHandler())
......@@ -82,12 +82,12 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e6:SetValue(s.aclimit)
Duel.RegisterEffect(e6,tp)
end
function s.atkfilter(e,c)
function s.atkfilter(c)
return c:IsSetCard(0x6f52) and c:IsFaceup()
end
function s.atkval(e,c)
local ct=Duel.GetMatchingGroupCount(aux.TRUE,tp,LOCATION_REMOVED,LOCATION_REMOVED,nil)
return ct*300
return ct*200
end
function s.aclimit(e,re,tp)
return not re:GetHandler():IsSetCard(0x6f52)
......
--创界神 奥梅提奥托
local s,id=GetID()
s.named_with_Grandwalker=1
function s.Grandwalker(c)
local m=_G["c"..c:GetCode()]
return m and m.named_with_Grandwalker
end
function s.initial_effect(c)
......
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