Commit ecd20f7e authored by TanakaKotoha's avatar TanakaKotoha

fix

parent 4970b9fc
...@@ -67,13 +67,12 @@ function c112014.thfilter4(c,e,tp) ...@@ -67,13 +67,12 @@ function c112014.thfilter4(c,e,tp)
end end
function c112014.sptg2(e,tp,eg,ep,ev,re,r,rp,chk) function c112014.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c112014.thfilter3,tp,LOCATION_GRAVE,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(c112014.thfilter4,tp,LOCATION_MZONE,0,1,nil,e,tp) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c112014.thfilter3,tp,LOCATION_GRAVE,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(c112014.thfilter4,tp,LOCATION_MZONE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
local g=Duel.SelectMatchingCard(tp,c112014.thfilter3,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SetTargetCard(g)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,tp,LOCATION_GRAVE)
end end
function c112014.spop2(e,tp,eg,ep,ev,re,r,rp) function c112014.spop2(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c112014.thfilter3,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
local tc=g:GetFirst()
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end end
function c112014.twocon(e,tp,eg,ep,ev,re,r,rp) function c112014.twocon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -31,7 +31,7 @@ function c112043.initial_effect(c) ...@@ -31,7 +31,7 @@ function c112043.initial_effect(c)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,112043) e2:SetCountLimit(1)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e2:SetTarget(c112043.distg) e2:SetTarget(c112043.distg)
e2:SetOperation(c112043.disop) e2:SetOperation(c112043.disop)
...@@ -60,7 +60,7 @@ function c112043.disfilter(c) ...@@ -60,7 +60,7 @@ function c112043.disfilter(c)
return c:IsAbleToDeck() and c:IsType(TYPE_MONSTER) return c:IsAbleToDeck() and c:IsType(TYPE_MONSTER)
end end
function c112043.spfilter(c,e,tp) function c112043.spfilter(c,e,tp)
return c:IsSetCard(0xa009) and c:IsAbleToDeck() and c:IsType(TYPE_MONSTER) return c:IsSetCard(0xca9) and c:IsAbleToDeck() and c:IsType(TYPE_MONSTER)
end end
function c112043.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c112043.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
...@@ -79,7 +79,7 @@ function c112043.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,7 +79,7 @@ function c112043.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(g1,nil,2,REASON_EFFECT) Duel.SendtoDeck(g1,nil,2,REASON_EFFECT)
end end
function c112043.cfil(c) function c112043.cfil(c)
return c:IsType(TYPE_MONSTER) and c:IsPreviousLocation(LOCATION_HAND) and c:IsSetCard(0xa009) return c:IsType(TYPE_MONSTER) and c:IsPreviousLocation(LOCATION_HAND) and c:IsSetCard(0xca9)
end end
function c112043.atktg(e,tp,eg,ep,ev,re,r,rp,chk) function c112043.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c112043.cfil,1,nil) end if chk==0 then return eg:IsExists(c112043.cfil,1,nil) end
......
...@@ -77,8 +77,11 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,8 +77,11 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
e3:SetOperation(cm.spop1) e3:SetOperation(cm.spop1)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function cm.filter(c)
return c:IsFaceup() and c:IsSetCard(0xfb5)
end
function cm.spcon1(e,tp,eg,ep,ev,re,r,rp) function cm.spcon1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsAbleToDeck() and rp==1-tp return e:GetHandler():IsAbleToDeck() and rp==1-tp and Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil,0xfb5)
end end
function cm.spop1(e,tp,eg,ep,ev,re,r,rp) function cm.spop1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -92,6 +95,7 @@ function cm.spcon(e,c) ...@@ -92,6 +95,7 @@ function cm.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local g,tt=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil):GetMaxGroup(Card.GetAttack) local g,tt=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil):GetMaxGroup(Card.GetAttack)
if g==nil then return false end
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:IsFaceup() and g:FilterCount(Card.IsReleasable,nil)>0 return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:IsFaceup() and g:FilterCount(Card.IsReleasable,nil)>0
end end
function cm.spop(e,tp,eg,ep,ev,re,r,rp) function cm.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -10,11 +10,11 @@ end ...@@ -10,11 +10,11 @@ end
function HakaShiro.SPSummoncon(e,c) function HakaShiro.SPSummoncon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local cc=Duel.GetFlagEffect(tp,12048004) local cc=Duel.GetFlagEffect(tp,12048004)*2
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(Card.IsAbleToDeckAsCost,tp,LOCATION_GRAVE,0,5-cc,c) return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(Card.IsAbleToDeckAsCost,tp,LOCATION_GRAVE,0,5-cc,c)
end end
function HakaShiro.SPSummonop(e,tp,eg,ep,ev,re,r,rp,c) function HakaShiro.SPSummonop(e,tp,eg,ep,ev,re,r,rp,c)
local cc=Duel.GetFlagEffect(tp,12048004) local cc=Duel.GetFlagEffect(tp,12048004)*2
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToDeckAsCost,tp,LOCATION_GRAVE,0,5-cc,5-cc,c) local g=Duel.SelectMatchingCard(tp,Card.IsAbleToDeckAsCost,tp,LOCATION_GRAVE,0,5-cc,5-cc,c)
Duel.SendtoDeck(g,nil,0,REASON_COST) Duel.SendtoDeck(g,nil,0,REASON_COST)
......
...@@ -42,7 +42,7 @@ function cm.sr_srqn(c,code,rc) ...@@ -42,7 +42,7 @@ function cm.sr_srqn(c,code,rc)
e2:SetOperation(cm.spop) e2:SetOperation(cm.spop)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_GRANT) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_GRANT)
e3:SetTargetRange(LOCATION_HAND,0) e3:SetTargetRange(LOCATION_HAND,LOCATION_HAND)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetReset(RESET_EVENT+RESETS_STANDARD) e3:SetReset(RESET_EVENT+RESETS_STANDARD)
e3:SetTarget(cm.eftg) e3:SetTarget(cm.eftg)
...@@ -54,7 +54,7 @@ function cm.sr_srqn(c,code,rc) ...@@ -54,7 +54,7 @@ function cm.sr_srqn(c,code,rc)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,1) e1:SetTargetRange(1,1)
e1:SetValue(1) --e1:SetValue(1)
e1:SetTarget(cm.atlimit) e1:SetTarget(cm.atlimit)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e1,true) rc:RegisterEffect(e1,true)
...@@ -65,5 +65,5 @@ function cm.eftg(e,c) ...@@ -65,5 +65,5 @@ function cm.eftg(e,c)
return c:IsRace(RACE_FAIRY) return c:IsRace(RACE_FAIRY)
end end
function cm.atlimit(e,c) function cm.atlimit(e,c)
return not c:IsRace(RACE_FAIRY) return c:IsType(TYPE_MONSTER) and not c:IsRace(RACE_FAIRY)
end end
\ No newline at end of file
...@@ -66,7 +66,7 @@ function cm.sr_srqn(c,code,rc) ...@@ -66,7 +66,7 @@ function cm.sr_srqn(c,code,rc)
e2:SetTarget(cm.rmtarget) e2:SetTarget(cm.rmtarget)
e2:SetReset(RESET_EVENT+0x1fe0000) e2:SetReset(RESET_EVENT+0x1fe0000)
e2:SetTargetRange(0xff,0xff) e2:SetTargetRange(0xff,0xff)
e2:SetValue(LOCATION_REMOVED) e2:SetValue(LOCATION_DECKBOT)
rc:RegisterEffect(e2) rc:RegisterEffect(e2)
rc:RegisterFlagEffect(code,RESET_EVENT+0x1fe0000-RESET_TOFIELD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(code,2)) rc:RegisterFlagEffect(code,RESET_EVENT+0x1fe0000-RESET_TOFIELD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(code,2))
end end
...@@ -74,5 +74,5 @@ function cm.rmtarget(e,c) ...@@ -74,5 +74,5 @@ function cm.rmtarget(e,c)
return not c:IsLocation(0x80) and not c:IsType(TYPE_SPELL+TYPE_TRAP) and not c:IsRace(RACE_FAIRY) return not c:IsLocation(0x80) and not c:IsType(TYPE_SPELL+TYPE_TRAP) and not c:IsRace(RACE_FAIRY)
end end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>29 return Duel.GetFieldGroupCount(e:GetHandler():GetControler(),LOCATION_DECK,0)>29
end end
\ No newline at end of file
...@@ -53,7 +53,7 @@ function cm.sr_srqn(c,code,rc) ...@@ -53,7 +53,7 @@ function cm.sr_srqn(c,code,rc)
rc:RegisterFlagEffect(code,RESET_EVENT+0x1fe0000-RESET_TOFIELD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(code,2)) rc:RegisterFlagEffect(code,RESET_EVENT+0x1fe0000-RESET_TOFIELD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(code,2))
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(Card.IsType,tp,1,0,2,nil) return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_MZONE,0)==1
end end
function cm.efilter(e,te) function cm.efilter(e,te)
return te:GetOwner()~=e:GetOwner() return te:GetOwner()~=e:GetOwner()
......
...@@ -22,10 +22,10 @@ function cm.tgfilter(c) ...@@ -22,10 +22,10 @@ function cm.tgfilter(c)
end end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
if chkc then return c.tgfilter(chkc) end if chkc then return cm.tgfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c.tgfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingTarget(cm.tgfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
local g=Duel.SelectTarget(tp,cm.tgfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,cm.tgfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,1,0,nil) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,1,0,nil)
end end
...@@ -38,19 +38,19 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,19 +38,19 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.sr_srqn(c,code,rc) function cm.sr_srqn(c,code,rc)
local e5=Effect.CreateEffect(c) --immune
e5:SetType(EFFECT_TYPE_FIELD) local e1=Effect.CreateEffect(c)
e5:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetType(EFFECT_TYPE_FIELD)
e5:SetCode(EFFECT_CANNOT_DIRECT_ATTACK) e1:SetCode(EFFECT_CANNOT_DIRECT_ATTACK)
e5:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e5:SetTargetRange(1,0) e1:SetTargetRange(LOCATION_MZONE,0)
e5:SetReset(RESET_EVENT+0x1fe0000) e1:SetTarget(aux.TRUE)
rc:RegisterEffect(e5,true) rc:RegisterEffect(e1,true)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_CHANGE_DAMAGE) e2:SetCode(EFFECT_CHANGE_DAMAGE)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetTargetRange(1,1) e2:SetTargetRange(1,0)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetValue(1000) e2:SetValue(1000)
e2:SetReset(RESET_EVENT+0x1fe0000) e2:SetReset(RESET_EVENT+0x1fe0000)
......
...@@ -86,5 +86,5 @@ function cm.sr_srqn(c,code,rc) ...@@ -86,5 +86,5 @@ function cm.sr_srqn(c,code,rc)
end end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return ( c:GetFlagEffect(12053000)>0 and c:GetFlagEffect(12053001)>0 and c:GetFlagEffect(12053002)>0 and c:GetFlagEffect(12053003)>0 and c:GetFlagEffect(12053004)>0 and c:GetFlagEffect(12053005)>0 and c:GetFlagEffect(12053006)>0 and c:GetFlagEffect(12053007)>0 and c:GetFlagEffect(12053008)>0 and c:GetFlagEffect(12053009)>0 and c:GetFlagEffect(12053010)>0) return (c:GetFlagEffect(12053000)+c:GetFlagEffect(12053001)+c:GetFlagEffect(12053002)+c:GetFlagEffect(12053003)+c:GetFlagEffect(12053004)+c:GetFlagEffect(12053005)+c:GetFlagEffect(12053006)+c:GetFlagEffect(12053007)+c:GetFlagEffect(12053008)+c:GetFlagEffect(12053009)+c:GetFlagEffect(12053010))>=7
end end
\ No newline at end of file
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