Commit b9770392 authored by VanillaSalt's avatar VanillaSalt

fix

parent 9126dd46
...@@ -32,7 +32,7 @@ function c33282498.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,7 +32,7 @@ function c33282498.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_GRAVE) return e:GetHandler():IsPreviousLocation(LOCATION_GRAVE)
end end
function c33282498.filter(c) function c33282498.filter(c)
return c:IsFaceup() and c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsFaceup() and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToRemove()
end end
function c33282498.target(e,tp,eg,ep,ev,re,r,rp,chk) function c33282498.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c33282498.filter,tp,0,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c33282498.filter,tp,0,LOCATION_ONFIELD,1,nil) end
......
...@@ -17,6 +17,7 @@ function c33460840.initial_effect(c) ...@@ -17,6 +17,7 @@ function c33460840.initial_effect(c)
e3:SetCategory(CATEGORY_SPECIAL_SUMMON) e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetType(EFFECT_TYPE_IGNITION) e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetCost(c33460840.spcost) e3:SetCost(c33460840.spcost)
e3:SetTarget(c33460840.sptg) e3:SetTarget(c33460840.sptg)
e3:SetOperation(c33460840.spop) e3:SetOperation(c33460840.spop)
...@@ -36,12 +37,11 @@ function c33460840.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,12 +37,11 @@ function c33460840.eqop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
local g=Duel.SelectMatchingCard(tp,c33460840.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,c) local g=Duel.SelectMatchingCard(tp,c33460840.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,c)
local tc=g:GetFirst() local tc=g:GetFirst()
if not Duel.Equip(tp,tc,c,false) then return end if not Duel.Equip(tp,tc,c,true) then return end
local atk=tc:GetTextAttack()/2 local atk=tc:GetTextAttack()/2
local def=tc:GetTextDefence()/2 local def=tc:GetTextDefence()/2
if atk<0 then atk=0 end if atk<0 then atk=0 end
if def<0 then def=0 end if def<0 then def=0 end
Duel.ChangePosition(tc,POS_FACEUP)
--Add Equip limit --Add Equip limit
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
...@@ -79,14 +79,13 @@ end ...@@ -79,14 +79,13 @@ end
function c33460840.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c33460840.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsReleasable() and Duel.CheckReleaseGroup(tp,nil,1,c) end if chk==0 then return c:IsReleasable() and Duel.CheckReleaseGroup(tp,nil,1,c) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local rg=Duel.SelectReleaseGroup(tp,nil,1,1,c) local rg=Duel.SelectReleaseGroup(tp,nil,1,1,c)
rg:AddCard(c) rg:AddCard(c)
Duel.Release(rg,REASON_COST) Duel.Release(rg,REASON_COST)
end end
function c33460840.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c33460840.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c33460840.spfilter(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c33460840.spfilter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>=-1 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-2
and Duel.IsExistingTarget(c33460840.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingTarget(c33460840.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c33460840.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) local g=Duel.SelectTarget(tp,c33460840.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
......
--巨神竜フェルグラント --巨神竜フェルグラント
function c60681103.initial_effect(c) function c60681103.initial_effect(c)
--remove
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_REMOVE) e1:SetCategory(CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e1:SetCondition(c60681103.thcon) e1:SetCondition(c60681103.rmcon)
e1:SetTarget(c60681103.thtg) e1:SetTarget(c60681103.rmtg)
e1:SetOperation(c60681103.thop) e1:SetOperation(c60681103.rmop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--spsummon
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_BATTLE_DESTROYING) e2:SetCode(EVENT_BATTLE_DESTROYING)
e2:SetCondition(aux.bdocon) e2:SetCondition(aux.bdocon)
e2:SetTarget(c60681103.sptg) e2:SetTarget(c60681103.sptg)
e2:SetOperation(c60681103.spop) e2:SetOperation(c60681103.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c60681103.thcon(e,tp,eg,ep,ev,re,r,rp) function c60681103.rmcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() return e:GetHandler():IsPreviousLocation(LOCATION_GRAVE)
return c:GetSummonType()==SUMMON_TYPE_SPECIAL and c:IsPreviousLocation(LOCATION_GRAVE)
end end
function c60681103.thfilter(c) function c60681103.rmfilter(c)
return c:IsType(TYPE_MONSTER) return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
end end
function c60681103.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c60681103.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE+LOCATION_GRAVE) and chkc:IsControler(1-tp) and c60681103.thfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE+LOCATION_GRAVE) and chkc:IsControler(1-tp) and c60681103.rmfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c60681103.thfilter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,1,nil) end if chk==0 then return Duel.IsExistingTarget(c60681103.rmfilter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,c60681103.thfilter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,1,1,nil) local g=Duel.SelectTarget(tp,c60681103.rmfilter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,1,1,nil)
local tc=g:GetFirst() Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0)
if tc and tc:IsAbleToRemove() then
Duel.SetOperationInfo(0,CATEGORY_REMOVE,tc,1,0,0)
end
end end
function c60681103.thop(e,tp,eg,ep,ev,re,r,rp) function c60681103.rmop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
local c=e:GetHandler() local c=e:GetHandler()
local atk=0 local atk=0
if tc:IsType(TYPE_XYZ) then atk=tc:GetRank() else atk=tc:GetLevel() end if tc:IsRelateToEffect(e) and Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)~=0 then
if tc and tc:IsRelateToEffect(e) then if tc:IsType(TYPE_XYZ) then atk=tc:GetRank() else atk=tc:GetLevel() end
if Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)~=0 then if c:IsFaceup() and c:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(atk*100) e1:SetValue(atk*100)
...@@ -56,7 +54,8 @@ function c60681103.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,7 +54,8 @@ function c60681103.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c60681103.filter(c,e,tp) function c60681103.filter(c,e,tp)
return c:IsRace(RACE_DRAGON) and (c:GetLevel()==7 or c:GetLevel()==8) and c:GetCode()~=60681103 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_DRAGON) and (c:GetLevel()==7 or c:GetLevel()==8) and not c:IsCode(60681103)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c60681103.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c60681103.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and c60681103.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and c60681103.filter(chkc,e,tp) end
......
--巨竜の聖騎士 --巨竜の聖騎士
function c6075801.initial_effect(c) function c6075801.initial_effect(c)
--equip
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP) e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
...@@ -20,10 +21,12 @@ function c6075801.initial_effect(c) ...@@ -20,10 +21,12 @@ function c6075801.initial_effect(c)
e3:SetCondition(c6075801.eqcon) e3:SetCondition(c6075801.eqcon)
e3:SetValue(c6075801.efilter) e3:SetValue(c6075801.efilter)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--spsummon
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetCategory(CATEGORY_SPECIAL_SUMMON) e4:SetCategory(CATEGORY_SPECIAL_SUMMON)
e4:SetType(EFFECT_TYPE_IGNITION) e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetProperty(EFFECT_FLAG_CARD_TARGET)
e4:SetCost(c6075801.spcost) e4:SetCost(c6075801.spcost)
e4:SetTarget(c6075801.sptg) e4:SetTarget(c6075801.sptg)
e4:SetOperation(c6075801.spop) e4:SetOperation(c6075801.spop)
...@@ -43,19 +46,17 @@ function c6075801.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,19 +46,17 @@ function c6075801.eqop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
local g=Duel.SelectMatchingCard(tp,c6075801.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,c) local g=Duel.SelectMatchingCard(tp,c6075801.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,c)
local tc=g:GetFirst() local tc=g:GetFirst()
if c:IsFaceup() and c:IsRelateToEffect(e) then if c:IsFaceup() and c:IsRelateToEffect(e) then
if not Duel.Equip(tp,tc,c,false) then return end if not Duel.Equip(tp,tc,c,true) then return end
Duel.ChangePosition(tc,POS_FACEUP) --Add Equip limit
--Add Equip limit local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_EQUIP_LIMIT)
e1:SetCode(EFFECT_EQUIP_LIMIT) e1:SetProperty(EFFECT_FLAG_COPY_INHERIT+EFFECT_FLAG_OWNER_RELATE)
e1:SetProperty(EFFECT_FLAG_COPY_INHERIT+EFFECT_FLAG_OWNER_RELATE) e1:SetReset(RESET_EVENT+0x1fe0000)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetValue(c6075801.eqlimit)
e1:SetValue(c6075801.eqlimit) tc:RegisterEffect(e1)
tc:RegisterEffect(e1) else Duel.SendtoGrave(tc,REASON_EFFECT) end
else Duel.SendtoGrave(tc,REASON_EFFECT)
end
end end
function c6075801.eqlimit(e,c) function c6075801.eqlimit(e,c)
return e:GetOwner()==c return e:GetOwner()==c
...@@ -73,14 +74,13 @@ end ...@@ -73,14 +74,13 @@ end
function c6075801.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c6075801.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsReleasable() and Duel.CheckReleaseGroup(tp,nil,1,c) end if chk==0 then return c:IsReleasable() and Duel.CheckReleaseGroup(tp,nil,1,c) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local rg=Duel.SelectReleaseGroup(tp,nil,1,1,c) local rg=Duel.SelectReleaseGroup(tp,nil,1,1,c)
rg:AddCard(c) rg:AddCard(c)
Duel.Release(rg,REASON_COST) Duel.Release(rg,REASON_COST)
end end
function c6075801.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c6075801.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c6075801.spfilter(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c6075801.spfilter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>=-1 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-2
and Duel.IsExistingTarget(c6075801.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingTarget(c6075801.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c6075801.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) local g=Duel.SelectTarget(tp,c6075801.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
......
...@@ -20,7 +20,6 @@ function c69868555.initial_effect(c) ...@@ -20,7 +20,6 @@ function c69868555.initial_effect(c)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(69868555,1)) e3:SetDescription(aux.Stringid(69868555,1))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON) e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetType(EFFECT_TYPE_IGNITION) e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetCountLimit(1) e3:SetCountLimit(1)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
...@@ -60,42 +59,42 @@ end ...@@ -60,42 +59,42 @@ end
function c69868555.disop(e,tp,eg,ep,ev,re,r,rp) function c69868555.disop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end if not e:GetHandler():IsRelateToEffect(e) then return end
local g=eg:Filter(c69868555.filter,nil,e) local g=eg:Filter(c69868555.filter,nil,e)
if g:GetCount()>0 then
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE) e1:SetCode(EFFECT_DISABLE)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(e:GetHandler()) local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE_EFFECT) e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) e2:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
if tc:IsType(TYPE_TRAPMONSTER) then if tc:IsType(TYPE_TRAPMONSTER) then
local e3=Effect.CreateEffect(e:GetHandler()) local e3=Effect.CreateEffect(e:GetHandler())
e3:SetType(EFFECT_TYPE_SINGLE) e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_DISABLE_TRAPMONSTER) e3:SetCode(EFFECT_DISABLE_TRAPMONSTER)
e3:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) e3:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e3) tc:RegisterEffect(e3)
end
tc=g:GetNext()
end end
tc=g:GetNext()
end end
end end
function c69868555.tkcostfilter(c) function c69868555.tkcostfilter(c)
return c:IsAbleToGraveAsCost() and c:IsFaceup() return c:IsFaceup() and c:IsAbleToGraveAsCost()
end end
function c69868555.tkcost(e,tp,eg,ep,ev,re,r,rp,chk) function c69868555.tkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c69868555.tkcostfilter,tp,LOCATION_ONFIELD,0,1,e:GetHandler()) end local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local loc=LOCATION_ONFIELD
if ft==-1 then loc=LOCATION_MZONE end
if chk==0 then return ft>-1 and Duel.IsExistingMatchingCard(c69868555.tkcostfilter,tp,loc,0,1,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c69868555.tkcostfilter,tp,LOCATION_ONFIELD,0,1,1,e:GetHandler()) local g=Duel.SelectMatchingCard(tp,c69868555.tkcostfilter,tp,loc,0,1,1,e:GetHandler())
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
end end
function c69868555.tktg(e,tp,eg,ep,ev,re,r,rp,chk) function c69868555.tktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.IsPlayerCanSpecialSummonMonster(tp,69868556,0,0x4011,0,0,1,RACE_DRAGON,ATTRIBUTE_LIGHT) end
and Duel.IsPlayerCanSpecialSummonMonster(tp,69868556,0,0x4011,0,0,1,RACE_DRAGON,ATTRIBUTE_LIGHT) end
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end end
...@@ -107,6 +106,7 @@ function c69868555.tkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -107,6 +106,7 @@ function c69868555.tkop(e,tp,eg,ep,ev,re,r,rp)
end end
function c69868555.thcostfilter(c) function c69868555.thcostfilter(c)
return c:IsRace(RACE_DRAGON) and (c:GetLevel()==7 or c:GetLevel()==8) return c:IsRace(RACE_DRAGON) and (c:GetLevel()==7 or c:GetLevel()==8)
and (c:IsLocation(LOCATION_HAND) or c:IsFaceup())
end end
function c69868555.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c69868555.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c69868555.thcostfilter,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,e:GetHandler()) end if chk==0 then return Duel.IsExistingMatchingCard(c69868555.thcostfilter,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,e:GetHandler()) 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