Commit 4b30e9cd authored by GuGu's avatar GuGu

Update c74561065.lua

parent 4f42ce98
Pipeline #33245 passed with stage
in 6 seconds
......@@ -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)
end
function cCardno.spellfilter(c,e,tp)
return c:IsSetCard(0x201) and c:IsType(TYPE_SPELL) and Duel.IsPlayerCanSpecialSummonMonster(tp,c:GetCode(),0x201,TYPE_MONSTER+TYPE_NORMAL,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
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
......@@ -61,8 +61,11 @@ function cCardno.tkop(e,tp,eg,ep,ev,re,r,rp)
local sg=g:Select(tp,1,1,nil)
local tc=sg:GetFirst()
if tc then
local t4=Duel.ReadCard(tc,4)
tc:SetCardData(4,TYPE_MONSTER+TYPE_NORMAL+TYPE_SPIRIT)
tc:AddMonsterAttribute(TYPE_MONSTER+TYPE_NORMAL+TYPE_SPIRIT,ATTRIBUTE_LIGHT,RACE_WARRIOR,1,500,0)
Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP)
tc:SetCardData(4,t4)
end
Duel.BreakEffect()
if c:IsLocation(LOCATION_MZONE) and Duel.SelectYesNo(tp,aux.Stringid(Cardno,1)) then
......
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