Commit cc068293 authored by 伊蕾娜's avatar 伊蕾娜

c74561065.lua

parent 7f89413f
Pipeline #32870 passed with stage
in 9 seconds
...@@ -46,7 +46,7 @@ function cCardno.tkcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -46,7 +46,7 @@ function cCardno.tkcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,nil,1,1,REASON_COST,nil) Duel.DiscardHand(tp,nil,1,1,REASON_COST,nil)
end end
function cCardno.spellfilter(c,e,tp) function cCardno.spellfilter(c,e,tp)
return c:IsSetCard(0x201) and Duel.IsPlayerCanSpecialSummonMonster(tp,c:GetCode(),0x201,0x11,500,0,1,RACE_WARRIOR,ATTRIBUTE_LIGHT,POS_FACEUP) return c:IsSetCard(0x201) and c:IsType(TYPE_SPELL) and Duel.IsPlayerCanSpecialSummonMonster(tp,c:GetCode(),0x201,TYPE_MONSTER+TYPE_NORMAL+TYPE_SPIRIT,500,0,1,RACE_WARRIOR,ATTRIBUTE_LIGHT,POS_FACEUP)
end end
function cCardno.tktg(e,tp,eg,ep,ev,re,r,rp,chk) function cCardno.tktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp)>0 and Duel.IsExistingMatchingCard(cCardno.spellfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) end if chk==0 then return Duel.GetMZoneCount(tp)>0 and Duel.IsExistingMatchingCard(cCardno.spellfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) end
...@@ -59,10 +59,10 @@ function cCardno.tkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,10 +59,10 @@ function cCardno.tkop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()==0 then return end if g:GetCount()==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=g:Select(tp,1,1,nil) local sg=g:Select(tp,1,1,nil)
local tg=sg:GetFirst() local tc=sg:GetFirst()
if tg then if tc then
tg:AddMonsterAttribute(TYPE_EFFECT+TYPE_SPIRIT,ATTRIBUTE_LIGHT,RACE_WARRIOR,1,500,0) tc:AddMonsterAttribute(TYPE_MONSTER+TYPE_NORMAL+TYPE_SPIRIT,ATTRIBUTE_LIGHT,RACE_WARRIOR,1,500,0)
Duel.SpecialSummon(tg,0,tp,tp,true,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP)
end end
Duel.BreakEffect() Duel.BreakEffect()
if c:IsLocation(LOCATION_MZONE) and Duel.SelectYesNo(tp,aux.Stringid(Cardno,1)) then if c:IsLocation(LOCATION_MZONE) and Duel.SelectYesNo(tp,aux.Stringid(Cardno,1)) then
...@@ -77,7 +77,7 @@ end ...@@ -77,7 +77,7 @@ end
--special summon --special summon
function cCardno.spfilter(c,tp) function cCardno.spfilter(c,tp)
return c:IsType(TYPE_MONSTER) and c:IsType(TYPE_SPIRIT) and c:IsReleasable() return c:IsType(TYPE_MONSTER) and c:IsType(TYPE_SPIRIT) and c:IsReleasable()
and (c:IsLocation(LOCATION_HAND) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 or Duel.GetMZoneCount(tp,c)>0) and (c:IsLocation(LOCATION_HAND) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 or Duel.GetMZoneCount(tp,c)>0)
end end
function cCardno.spcon(e,c) function cCardno.spcon(e,c)
if c==nil then return true end if c==nil then return true 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