Commit fdb1f69f authored by fallenstardust's avatar fallenstardust

fix LEDE-JP009\018 scripts

parent e393b6ff
Pipeline #24382 passed with stages
in 36 seconds
--幻奏の歌姫ルフラン --幻奏的歌姬 露芙兰
function c101204009.initial_effect(c) function c101204009.initial_effect(c)
aux.EnablePendulumAttribute(c) aux.EnablePendulumAttribute(c)
local e0=Effect.CreateEffect(c) local e0=Effect.CreateEffect(c)
...@@ -55,7 +55,7 @@ function c101204009.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,7 +55,7 @@ function c101204009.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local tg=Duel.SelectMatchingCard(tp,c101204009.tgfilter,tp,LOCATION_DECK,0,1,1,nil):GetFirst() local tg=Duel.SelectMatchingCard(tp,c101204009.tgfilter,tp,LOCATION_DECK,0,1,1,nil):GetFirst()
if tg and Duel.SendtoGrave(tg,REASON_COST)~=0 and tc:IsLocation(LOCATION_GRAVE) then if tg and Duel.SendtoGrave(tg,REASON_COST)~=0 and tg:IsLocation(LOCATION_GRAVE) then
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then if tc:IsRelateToEffect(e) and tc:IsFaceup() then
local e0=Effect.CreateEffect(c) local e0=Effect.CreateEffect(c)
...@@ -93,7 +93,7 @@ function c101204009.pentg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -93,7 +93,7 @@ function c101204009.pentg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c101204009.penop(e,tp,eg,ep,ev,re,r,rp) function c101204009.penop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then if c:IsRelateToEffect(e) and (Duel.CheckLocation(tp,LOCATION_PZONE,0) or Duel.CheckLocation(tp,LOCATION_PZONE,1)) then
Duel.MoveToField(c,tp,tp,LOCATION_PZONE,POS_FACEUP,true) Duel.MoveToField(c,tp,tp,LOCATION_PZONE,POS_FACEUP,true)
end end
end end
\ No newline at end of file
...@@ -47,7 +47,7 @@ function c101204018.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -47,7 +47,7 @@ function c101204018.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c101204018.spop(e,tp,eg,ep,ev,re,r,rp) function c101204018.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) or Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end end
function c101204018.filter(c,e,tp) function c101204018.filter(c,e,tp)
......
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