Commit 36c35ff9 authored by fallenstardust's avatar fallenstardust

fix LEDE-JP034\035 script

parent fdb1f69f
Pipeline #24385 passed with stages
in 42 seconds
--粛声なる竜神サフィラ --肃声的龙神 萨菲拉
function c101204034.initial_effect(c) function c101204034.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -35,8 +35,11 @@ function c101204034.initial_effect(c) ...@@ -35,8 +35,11 @@ function c101204034.initial_effect(c)
e3:SetOperation(c101204034.thop) e3:SetOperation(c101204034.thop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c101204034.cfilter(c)
return c:IsFaceupEx() and c:IsCode(101203019)
end
function c101204034.drcon(e,tp,eg,ep,ev,re,r,rp) function c101204034.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL) return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL) and Duel.IsExistingMatchingCard(c101204034.cfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,nil)
end end
function c101204034.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c101204034.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,2) end if chk==0 then return Duel.IsPlayerCanDraw(tp,2) end
......
...@@ -61,8 +61,7 @@ function c101204059.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,8 +61,7 @@ function c101204059.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c101204059.atkcon(e,tp,eg,ep,ev,re,r,rp) function c101204059.atkcon(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase() return ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE
return Duel.GetTurnPlayer()==tp and ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE
end end
function c101204059.atkfilter(c) function c101204059.atkfilter(c)
return c:IsFaceup() and c:IsType(TYPE_SYNCHRO) and c:IsRace(RACE_DRAGON) return c:IsFaceup() and c:IsType(TYPE_SYNCHRO) and c:IsRace(RACE_DRAGON)
......
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