Commit fb66da53 authored by mercury233's avatar mercury233

fix

parent f63e4108
...@@ -61,7 +61,10 @@ end ...@@ -61,7 +61,10 @@ end
function c101012024.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c101012024.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local ft1=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft1=Duel.GetLocationCount(tp,LOCATION_MZONE)
local ft2=Duel.GetLocationCount(1-tp,LOCATION_MZONE,tp) local ft2=Duel.GetLocationCount(1-tp,LOCATION_MZONE,tp)
if chk==0 then return ft1>0 and ft2>0 and Duel.IsPlayerCanSpecialSummonMonster(tp,101012124,0xfe,0x4011,0,0,1,RACE_MACHINE,ATTRIBUTE_DARK) and not Duel.IsPlayerAffectedByEffect(tp,59822133) end if chk==0 then return ft1>0 and ft2>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,46647145,0xfe,0x4011,0,0,1,RACE_MACHINE,ATTRIBUTE_DARK,POS_FACEUP_DEFENSE,tp)
and Duel.IsPlayerCanSpecialSummonMonster(tp,46647145,0xfe,0x4011,0,0,1,RACE_MACHINE,ATTRIBUTE_DARK,POS_FACEUP_DEFENSE,1-tp)
and not Duel.IsPlayerAffectedByEffect(tp,59822133) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,2,0,0) Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,2,0,0)
end end
...@@ -69,7 +72,8 @@ function c101012024.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,7 +72,8 @@ function c101012024.spop(e,tp,eg,ep,ev,re,r,rp)
local ft1=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft1=Duel.GetLocationCount(tp,LOCATION_MZONE)
local ft2=Duel.GetLocationCount(1-tp,LOCATION_MZONE,tp) local ft2=Duel.GetLocationCount(1-tp,LOCATION_MZONE,tp)
if ft1<=0 or ft2<=0 or Duel.IsPlayerAffectedByEffect(tp,59822133) then return end if ft1<=0 or ft2<=0 or Duel.IsPlayerAffectedByEffect(tp,59822133) then return end
if Duel.IsPlayerCanSpecialSummonMonster(tp,101012124,0xfe,0x4011,0,0,1,RACE_MACHINE,ATTRIBUTE_DARK) then if Duel.IsPlayerCanSpecialSummonMonster(tp,46647145,0xfe,0x4011,0,0,1,RACE_MACHINE,ATTRIBUTE_DARK,POS_FACEUP_DEFENSE,tp)
and Duel.IsPlayerCanSpecialSummonMonster(tp,46647145,0xfe,0x4011,0,0,1,RACE_MACHINE,ATTRIBUTE_DARK,POS_FACEUP_DEFENSE,1-tp) then
local token=Duel.CreateToken(tp,101012124) local token=Duel.CreateToken(tp,101012124)
Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP_DEFENSE) Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
local token=Duel.CreateToken(tp,101012124) local token=Duel.CreateToken(tp,101012124)
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
--Scripted by mallu11 --Scripted by mallu11
function c101012025.initial_effect(c) function c101012025.initial_effect(c)
c:EnableReviveLimit()
--special summon rule --special summon rule
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
......
...@@ -40,6 +40,7 @@ function c101012026.srop(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,6 +40,7 @@ function c101012026.srop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c101012026.srfilter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c101012026.srfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end end
end end
function c101012026.spfilter(c,e,tp) function c101012026.spfilter(c,e,tp)
......
...@@ -42,6 +42,13 @@ end ...@@ -42,6 +42,13 @@ end
function c101012032.spop(e,tp,eg,ep,ev,re,r,rp) function c101012032.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EFFECT_LEAVE_FIELD_REDIRECT)
e1:SetValue(LOCATION_REMOVED)
e1:SetReset(RESET_EVENT+RESETS_REDIRECT)
c:RegisterEffect(e1,true)
local ct=e:GetLabel() local ct=e:GetLabel()
local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil) local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
if (ct>=2 and g:GetCount()>0) or ct==3 then if (ct>=2 and g:GetCount()>0) or ct==3 then
......
...@@ -44,7 +44,7 @@ function c101012034.initial_effect(c) ...@@ -44,7 +44,7 @@ function c101012034.initial_effect(c)
e5:SetType(EFFECT_TYPE_SINGLE) e5:SetType(EFFECT_TYPE_SINGLE)
e5:SetCode(EFFECT_EQUIP_LIMIT) e5:SetCode(EFFECT_EQUIP_LIMIT)
e5:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e5:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e5:SetValue(c101012034.eqlimit) e5:SetValue(1)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c101012034.filter(c) function c101012034.filter(c)
...@@ -114,6 +114,3 @@ function c101012034.reop(e,tp,eg,ep,ev,re,r,rp) ...@@ -114,6 +114,3 @@ function c101012034.reop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
function c101012034.eqlimit(e,c)
return e:GetHandler():GetEquipTarget()==c
end
...@@ -32,7 +32,7 @@ function c101012038.initial_effect(c) ...@@ -32,7 +32,7 @@ function c101012038.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c101012038.descon(e,tp,eg,ep,ev,re,r,rp) function c101012038.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSequence()==2 return e:GetHandler():GetSequence()~=2
end end
function c101012038.desop(e,tp,eg,ep,ev,re,r,rp) function c101012038.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(e:GetHandler(),REASON_EFFECT) Duel.Destroy(e:GetHandler(),REASON_EFFECT)
......
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