Commit d583f837 authored by POLYMER's avatar POLYMER

fix

parent ab23cdae
...@@ -24,6 +24,7 @@ function cm.initial_effect(c) ...@@ -24,6 +24,7 @@ function cm.initial_effect(c)
e3:SetType(EFFECT_TYPE_QUICK_O) e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_FREE_CHAIN) e3:SetCode(EVENT_FREE_CHAIN)
e3:SetRange(LOCATION_GRAVE) e3:SetRange(LOCATION_GRAVE)
e3:SetCountLimit(1,m)
e3:SetTarget(cm.eqtg1) e3:SetTarget(cm.eqtg1)
e3:SetOperation(cm.eqop1) e3:SetOperation(cm.eqop1)
c:RegisterEffect(e3) c:RegisterEffect(e3)
...@@ -40,6 +41,7 @@ function cm.eqtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -40,6 +41,7 @@ function cm.eqtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function cm.eqop(e,tp,eg,ep,ev,re,r,rp) function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
local cg=Duel.GetMatchingGroup(cm.eqfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,c,e,tp) local cg=Duel.GetMatchingGroup(cm.eqfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,c,e,tp)
if #cg>0 then if #cg>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
......
...@@ -53,7 +53,7 @@ function c28366277.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,7 +53,7 @@ function c28366277.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local dg=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,aux.ExceptThisCard()) local dg=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,aux.ExceptThisCard(e))
if dg:GetFirst():IsLocation(LOCATION_ONFIELD) then if dg:GetFirst():IsLocation(LOCATION_ONFIELD) then
Duel.HintSelection(dg) Duel.HintSelection(dg)
end end
......
...@@ -29,23 +29,23 @@ function c49811330.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -29,23 +29,23 @@ function c49811330.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return g:CheckSubGroup(c49811330.ffilter,3,#g) and c:IsDiscardable() end if chk==0 then return g:CheckSubGroup(c49811330.ffilter,3,#g) and c:IsDiscardable() end
Duel.SendtoGrave(c,REASON_COST+REASON_DISCARD) Duel.SendtoGrave(c,REASON_COST+REASON_DISCARD)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local gs=g:SelectSubGroup(tp,c49811330.ffilter,true,3,3) local gs=g:SelectSubGroup(tp,c49811330.ffilter,false,3,3)
Duel.ConfirmCards(1-tp,gs) Duel.ConfirmCards(1-tp,gs)
local dc=gs:Filter(Card.IsLocation,nil,LOCATION_DECK) local dc=gs:Filter(Card.IsLocation,nil,LOCATION_DECK)
local hc=gs:Filter(Card.IsLocation,nil,LOCATION_HAND) local hc=gs:Filter(Card.IsLocation,nil,LOCATION_HAND)
local tc=gs:GetFirst() local tc=gs:GetFirst()
local code1=tc:GetCode() local code1=tc:GetCode()
Duel.Hint(HINT_CARD,1,code1) Duel.Hint(HINT_CARD,1,code1)
Duel.Hint(HINT_CODE,1,code1) Duel.Hint(HINT_CODE,1,code1)
tc=gs:GetNext() tc=gs:GetNext()
local code2=tc:GetCode() local code2=tc:GetCode()
Duel.Hint(HINT_CARD,1,code2) Duel.Hint(HINT_CARD,1,code2)
Duel.Hint(HINT_CODE,1,code2) Duel.Hint(HINT_CODE,1,code2)
tc=gs:GetNext() tc=gs:GetNext()
local code3=tc:GetCode() local code3=tc:GetCode()
Duel.Hint(HINT_CARD,1,code3) Duel.Hint(HINT_CARD,1,code3)
Duel.Hint(HINT_CODE,1,code3) Duel.Hint(HINT_CODE,1,code3)
tc=gs:GetNext() tc=gs:GetNext()
if #dc>0 then if #dc>0 then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
end end
......
...@@ -29,6 +29,17 @@ function c60010129.initial_effect(c) ...@@ -29,6 +29,17 @@ function c60010129.initial_effect(c)
e2:SetTarget(c60010129.drtg) e2:SetTarget(c60010129.drtg)
e2:SetOperation(c60010129.drop) e2:SetOperation(c60010129.drop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--space check
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_NO_TURN_RESET)
e3:SetCode(EVENT_PREDRAW)
e3:SetRange(0xff)
e3:SetCountLimit(1,60010129+EFFECT_COUNT_CODE_DUEL)
e3:SetOperation(c60010129.checkop)
c:RegisterEffect(e3)
end
function c60010129.checkop(e,tp,eg,ep,ev,re,r,rp)
if not SpaceCheck then if not SpaceCheck then
SpaceCheck={} SpaceCheck={}
for i=0,1 do for i=0,1 do
......
...@@ -29,6 +29,19 @@ function c60010130.initial_effect(c) ...@@ -29,6 +29,19 @@ function c60010130.initial_effect(c)
e2:SetTarget(c60010130.detg) e2:SetTarget(c60010130.detg)
e2:SetOperation(c60010130.deop) e2:SetOperation(c60010130.deop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--space check
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_NO_TURN_RESET)
e3:SetCode(EVENT_PREDRAW)
e3:SetRange(0xff)
e3:SetCountLimit(1,60010129+EFFECT_COUNT_CODE_DUEL)
e3:SetOperation(c60010130.checkop)
c:RegisterEffect(e3)
c60010130.toss_dice=true
c60010130.toss_coin=true
end
function c60010130.checkop(e,tp,eg,ep,ev,re,r,rp)
if not SpaceCheck then if not SpaceCheck then
SpaceCheck={} SpaceCheck={}
for i=0,1 do for i=0,1 do
...@@ -38,8 +51,6 @@ function c60010130.initial_effect(c) ...@@ -38,8 +51,6 @@ function c60010130.initial_effect(c)
end end
end end
end end
c60010130.toss_dice=true
c60010130.toss_coin=true
end end
function c60010130.condition(e,tp,eg,ep,ev,re,r,rp) function c60010130.condition(e,tp,eg,ep,ev,re,r,rp)
return SpaceCheck[tp] return SpaceCheck[tp]
......
...@@ -28,6 +28,17 @@ function c60010131.initial_effect(c) ...@@ -28,6 +28,17 @@ function c60010131.initial_effect(c)
e2:SetCondition(c60010131.necon) e2:SetCondition(c60010131.necon)
e2:SetOperation(c60010131.neop) e2:SetOperation(c60010131.neop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--space check
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_NO_TURN_RESET)
e3:SetCode(EVENT_PREDRAW)
e3:SetRange(0xff)
e3:SetCountLimit(1,60010129+EFFECT_COUNT_CODE_DUEL)
e3:SetOperation(c60010131.checkop)
c:RegisterEffect(e3)
end
function c60010131.checkop(e,tp,eg,ep,ev,re,r,rp)
if not SpaceCheck then if not SpaceCheck then
SpaceCheck={} SpaceCheck={}
for i=0,1 do for i=0,1 do
......
...@@ -28,6 +28,17 @@ function c60010132.initial_effect(c) ...@@ -28,6 +28,17 @@ function c60010132.initial_effect(c)
e2:SetTarget(c60010132.intg) e2:SetTarget(c60010132.intg)
e2:SetOperation(c60010132.inop) e2:SetOperation(c60010132.inop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--space check
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_NO_TURN_RESET)
e3:SetCode(EVENT_PREDRAW)
e3:SetRange(0xff)
e3:SetCountLimit(1,60010129+EFFECT_COUNT_CODE_DUEL)
e3:SetOperation(c60010132.checkop)
c:RegisterEffect(e3)
end
function c60010132.checkop(e,tp,eg,ep,ev,re,r,rp)
if not SpaceCheck then if not SpaceCheck then
SpaceCheck={} SpaceCheck={}
for i=0,1 do for i=0,1 do
......
...@@ -28,6 +28,17 @@ function c60010133.initial_effect(c) ...@@ -28,6 +28,17 @@ function c60010133.initial_effect(c)
e2:SetCondition(c60010133.accon) e2:SetCondition(c60010133.accon)
e2:SetOperation(c60010133.acop) e2:SetOperation(c60010133.acop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--space check
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_NO_TURN_RESET)
e3:SetCode(EVENT_PREDRAW)
e3:SetRange(0xff)
e3:SetCountLimit(1,60010129+EFFECT_COUNT_CODE_DUEL)
e3:SetOperation(c60010133.checkop)
c:RegisterEffect(e3)
end
function c60010133.checkop(e,tp,eg,ep,ev,re,r,rp)
if not SpaceCheck then if not SpaceCheck then
SpaceCheck={} SpaceCheck={}
for i=0,1 do for i=0,1 do
......
...@@ -29,6 +29,17 @@ function c60010134.initial_effect(c) ...@@ -29,6 +29,17 @@ function c60010134.initial_effect(c)
e2:SetTarget(c60010134.drtg) e2:SetTarget(c60010134.drtg)
e2:SetOperation(c60010134.drop) e2:SetOperation(c60010134.drop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--space check
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_NO_TURN_RESET)
e3:SetCode(EVENT_PREDRAW)
e3:SetRange(0xff)
e3:SetCountLimit(1,60010129+EFFECT_COUNT_CODE_DUEL)
e3:SetOperation(c60010134.checkop)
c:RegisterEffect(e3)
end
function c60010134.checkop(e,tp,eg,ep,ev,re,r,rp)
if not SpaceCheck then if not SpaceCheck then
SpaceCheck={} SpaceCheck={}
for i=0,1 do for i=0,1 do
......
...@@ -29,6 +29,17 @@ function c60010135.initial_effect(c) ...@@ -29,6 +29,17 @@ function c60010135.initial_effect(c)
e2:SetTarget(c60010135.thtg) e2:SetTarget(c60010135.thtg)
e2:SetOperation(c60010135.thop) e2:SetOperation(c60010135.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--space check
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_NO_TURN_RESET)
e3:SetCode(EVENT_PREDRAW)
e3:SetRange(0xff)
e3:SetCountLimit(1,60010129+EFFECT_COUNT_CODE_DUEL)
e3:SetOperation(c60010135.checkop)
c:RegisterEffect(e3)
end
function c60010135.checkop(e,tp,eg,ep,ev,re,r,rp)
if not SpaceCheck then if not SpaceCheck then
SpaceCheck={} SpaceCheck={}
for i=0,1 do for i=0,1 do
......
...@@ -35,6 +35,17 @@ function c60010136.initial_effect(c) ...@@ -35,6 +35,17 @@ function c60010136.initial_effect(c)
e2:SetCondition(c60010136.decon) e2:SetCondition(c60010136.decon)
e2:SetOperation(c60010136.deop) e2:SetOperation(c60010136.deop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--space check
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_NO_TURN_RESET)
e3:SetCode(EVENT_PREDRAW)
e3:SetRange(0xff)
e3:SetCountLimit(1,60010129+EFFECT_COUNT_CODE_DUEL)
e3:SetOperation(c60010136.checkop)
c:RegisterEffect(e3)
end
function c60010136.checkop(e,tp,eg,ep,ev,re,r,rp)
if not SpaceCheck then if not SpaceCheck then
SpaceCheck={} SpaceCheck={}
for i=0,1 do for i=0,1 do
......
...@@ -37,6 +37,17 @@ function c60010137.initial_effect(c) ...@@ -37,6 +37,17 @@ function c60010137.initial_effect(c)
e2:SetTarget(c60010137.detg) e2:SetTarget(c60010137.detg)
e2:SetOperation(c60010137.deop) e2:SetOperation(c60010137.deop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--space check
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_NO_TURN_RESET)
e3:SetCode(EVENT_PREDRAW)
e3:SetRange(0xff)
e3:SetCountLimit(1,60010129+EFFECT_COUNT_CODE_DUEL)
e3:SetOperation(c60010137.checkop)
c:RegisterEffect(e3)
end
function c60010137.checkop(e,tp,eg,ep,ev,re,r,rp)
if not SpaceCheck then if not SpaceCheck then
SpaceCheck={} SpaceCheck={}
for i=0,1 do for i=0,1 do
......
...@@ -36,6 +36,17 @@ function c60010138.initial_effect(c) ...@@ -36,6 +36,17 @@ function c60010138.initial_effect(c)
e2:SetTarget(c60010138.tgtg) e2:SetTarget(c60010138.tgtg)
e2:SetOperation(c60010138.tgop) e2:SetOperation(c60010138.tgop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--space check
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_NO_TURN_RESET)
e3:SetCode(EVENT_PREDRAW)
e3:SetRange(0xff)
e3:SetCountLimit(1,60010129+EFFECT_COUNT_CODE_DUEL)
e3:SetOperation(c60010138.checkop)
c:RegisterEffect(e3)
end
function c60010138.checkop(e,tp,eg,ep,ev,re,r,rp)
if not SpaceCheck then if not SpaceCheck then
SpaceCheck={} SpaceCheck={}
for i=0,1 do for i=0,1 do
......
...@@ -29,6 +29,17 @@ function c60010139.initial_effect(c) ...@@ -29,6 +29,17 @@ function c60010139.initial_effect(c)
e2:SetTarget(c60010139.drtg) e2:SetTarget(c60010139.drtg)
e2:SetOperation(c60010139.drop) e2:SetOperation(c60010139.drop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--space check
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_NO_TURN_RESET)
e3:SetCode(EVENT_PREDRAW)
e3:SetRange(0xff)
e3:SetCountLimit(1,60010129+EFFECT_COUNT_CODE_DUEL)
e3:SetOperation(c60010139.checkop)
c:RegisterEffect(e3)
end
function c60010139.checkop(e,tp,eg,ep,ev,re,r,rp)
if not SpaceCheck then if not SpaceCheck then
SpaceCheck={} SpaceCheck={}
for i=0,1 do for i=0,1 do
......
...@@ -38,6 +38,17 @@ function c60010140.initial_effect(c) ...@@ -38,6 +38,17 @@ function c60010140.initial_effect(c)
e2:SetTarget(c60010140.sptg) e2:SetTarget(c60010140.sptg)
e2:SetOperation(c60010140.spop) e2:SetOperation(c60010140.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--space check
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_NO_TURN_RESET)
e3:SetCode(EVENT_PREDRAW)
e3:SetRange(0xff)
e3:SetCountLimit(1,60010129+EFFECT_COUNT_CODE_DUEL)
e3:SetOperation(c60010140.checkop)
c:RegisterEffect(e3)
end
function c60010140.checkop(e,tp,eg,ep,ev,re,r,rp)
if not SpaceCheck then if not SpaceCheck then
SpaceCheck={} SpaceCheck={}
for i=0,1 do for i=0,1 do
......
...@@ -44,6 +44,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,6 +44,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.SelectMatchingCard(tp,cm.filter1,tp,LOCATION_ONFIELD,0,1,1,nil) local g1=Duel.SelectMatchingCard(tp,cm.filter1,tp,LOCATION_ONFIELD,0,1,1,nil)
local g2=Duel.SelectMatchingCard(tp,Card.IsType,tp,LOCATION_GRAVE,0,1,1,nil,TYPE_MONSTER) local g2=Duel.SelectMatchingCard(tp,Card.IsType,tp,LOCATION_GRAVE,0,1,1,nil,TYPE_MONSTER)
local g3=Duel.SelectMatchingCard(tp,cm.filter1,tp,LOCATION_REMOVED,0,1,1,nil) local g3=Duel.SelectMatchingCard(tp,cm.filter1,tp,LOCATION_REMOVED,0,1,1,nil)
if not (g1 and g2 and g3) then return end
g1:Merge(g2):Merge(g3) g1:Merge(g2):Merge(g3)
if g1:GetCount()==3 then if g1:GetCount()==3 then
Duel.SendtoHand(g1,nil,REASON_EFFECT) Duel.SendtoHand(g1,nil,REASON_EFFECT)
......
...@@ -4,24 +4,28 @@ function c79029510.initial_effect(c) ...@@ -4,24 +4,28 @@ function c79029510.initial_effect(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CANNOT_NEGATE) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CANNOT_INACTIVATE+EFFECT_FLAG_CAN_FORBIDDEN)
e1:SetTarget(c79029510.damtg) e1:SetTarget(c79029510.target)
e1:SetOperation(c79029510.activate) e1:SetOperation(c79029510.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c79029510.damtg(e,tp,eg,ep,ev,re,r,rp,chk) function c79029510.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetTargetPlayer(1-tp) Duel.SetTargetPlayer(1-tp)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,0) end
function c79029510.filter(c)
return c:IsCode(89252157,97574404,99030164,57935140)
end end
function c79029510.activate(e,tp,eg,ep,ev,re,r,rp) function c79029510.activate(e,tp,eg,ep,ev,re,r,rp)
local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
local opt=0 local opt=0
local g=Duel.GetFieldGroup(p,LOCATION_HAND,0):Filter(c79029510.filter,nil)
if Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,89252157) if Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,89252157)
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,97574404) and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,97574404)
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,99030164) and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,99030164)
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,57935140) and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,57935140)
and Duel.SelectYesNo(tp,aux.Stringid(79029510,2)) then and Duel.SelectYesNo(tp,aux.Stringid(79029510,2)) then
Duel.ConfirmCards(1-p,g)
opt=1 opt=1
end end
if opt==0 then if opt==0 then
...@@ -32,4 +36,4 @@ function c79029510.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,4 +36,4 @@ function c79029510.activate(e,tp,eg,ep,ev,re,r,rp)
if opt==0 then if opt==0 then
Duel.Win(1-p,WIN_REASON_MARRY) Duel.Win(1-p,WIN_REASON_MARRY)
end end
end end
\ No newline at end of file
...@@ -28,10 +28,10 @@ function cm.efilter(e,re) ...@@ -28,10 +28,10 @@ function cm.efilter(e,re)
return re:IsActiveType(TYPE_MONSTER) and re:GetOwner()~=e:GetOwner() return re:IsActiveType(TYPE_MONSTER) and re:GetOwner()~=e:GetOwner()
end end
function cm.setfilter(c,tp) function cm.setfilter(c,tp)
return c:IsType(TYPE_TRAP) and c:IsSetCard(0xd4) and c:IsSSetable() and Duel.IsExistingMatchingCard(cm.setfilter2,tp,LOCATION_DECK,0,1,nil,c) return c:IsType(TYPE_TRAP) and c:IsSetCard(0xd4) and c:IsSSetable() and Duel.IsExistingMatchingCard(cm.setfilter2,tp,LOCATION_DECK,0,1,nil,c)
end end
function cm.setfilter2(c,tc) function cm.setfilter2(c,tc)
return not c:IsCode(tc:GetCode()) andc:IsType(TYPE_TRAP) and c:IsSetCard(0xd4) and c:IsAbleToGrave() return not c:IsCode(tc:GetCode()) and c:IsType(TYPE_TRAP) and c:IsSetCard(0xd4) and c:IsAbleToGrave()
end end
function cm.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_REMOVED) and cm.setfilter(chkc,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_REMOVED) and cm.setfilter(chkc,tp) end
......
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