Commit 14c59fa2 authored by wind2009's avatar wind2009

Fix

parent b7cbecfa
No preview for this file type
...@@ -18,7 +18,7 @@ function s.initial_effect(c) ...@@ -18,7 +18,7 @@ function s.initial_effect(c)
--destroy --destroy
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,1)) e3:SetDescription(aux.Stringid(id,1))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON) e3:SetCategory(CATEGORY_DESTROY+CATEGORY_SPECIAL_SUMMON)
e3:SetType(EFFECT_TYPE_IGNITION) e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,id+o) e3:SetCountLimit(1,id+o)
......
...@@ -65,10 +65,10 @@ function s.cltg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -65,10 +65,10 @@ function s.cltg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp)
and chkc:IsControlerCanBeChanged() end and chkc:IsControlerCanBeChanged() end
if chk==0 then return Duel.IsExistingTarget(Card.IsControlerCanBeChanged,tp,0,LOCATION_MZONE,1,nil) if chk==0 then return Duel.IsExistingTarget(Card.IsControlerCanBeChanged,tp,0,LOCATION_MZONE,1,nil,true)
and Duel.GetMZoneCount(tp,c,tp,LOCATION_REASON_CONTROL)>0 end and Duel.GetMZoneCount(tp,c,tp,LOCATION_REASON_CONTROL)>0 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
local g=Duel.SelectTarget(tp,Card.IsControlerCanBeChanged,tp,0,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,Card.IsControlerCanBeChanged,tp,0,LOCATION_MZONE,1,1,nil,true)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,c,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,c,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_CONTROL,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_CONTROL,g,1,0,0)
end end
......
...@@ -58,7 +58,6 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,7 +58,6 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.spcon(e,tp,eg,ep,ev,re,r,rp) function s.spcon(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase()
return Duel.GetTurnPlayer()~=tp and Duel.IsMainPhase() return Duel.GetTurnPlayer()~=tp and Duel.IsMainPhase()
end end
function s.tdfilter(c,e,tp) function s.tdfilter(c,e,tp)
...@@ -90,7 +89,7 @@ function s.fselect2(g,e,tp,sg) ...@@ -90,7 +89,7 @@ function s.fselect2(g,e,tp,sg)
or Duel.GetLocationCount(tp,LOCATION_MZONE)==0) or Duel.GetLocationCount(tp,LOCATION_MZONE)==0)
end end
function s.spop(e,tp,eg,ep,ev,re,r,rp) function s.spop(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToChain,nil) local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(aux.NecroValleyFilter(Card.IsRelateToChain),nil)
if tg:GetCount()<2 then if tg:GetCount()<2 then
return return
elseif tg:GetCount()==2 and tg:IsExists(Card.IsAbleToDeck,2,nil) then elseif tg:GetCount()==2 and tg:IsExists(Card.IsAbleToDeck,2,nil) then
...@@ -100,6 +99,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -100,6 +99,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
local sg=tg:SelectSubGroup(tp,s.fselect2,false,2,2,e,tp,tg) local sg=tg:SelectSubGroup(tp,s.fselect2,false,2,2,e,tp,tg)
if sg:GetCount()>0 then if sg:GetCount()>0 then
tg:Sub(sg) tg:Sub(sg)
Duel.HintSelection(sg)
aux.PlaceCardsOnDeckBottom(tp,sg) aux.PlaceCardsOnDeckBottom(tp,sg)
local og=Duel.GetOperatedGroup() local og=Duel.GetOperatedGroup()
if not og:IsExists(Card.IsLocation,1,nil,LOCATION_DECK+LOCATION_EXTRA) then return end if not og:IsExists(Card.IsLocation,1,nil,LOCATION_DECK+LOCATION_EXTRA) then return end
......
...@@ -3,6 +3,7 @@ local s,id,o=GetID() ...@@ -3,6 +3,7 @@ local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) 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)
......
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