Commit 59283887 authored by fallenstardust's avatar fallenstardust

fix LEDE-JP018 Script

parent b7c1ee75
...@@ -38,7 +38,7 @@ function c101204018.cfilter(c) ...@@ -38,7 +38,7 @@ function c101204018.cfilter(c)
return c:IsFaceup() and c:IsRace(RACE_DRAGON) and c:IsAttribute(ATTRIBUTE_FIRE) return c:IsFaceup() and c:IsRace(RACE_DRAGON) and c:IsAttribute(ATTRIBUTE_FIRE)
end end
function c101204018.spcon(e,tp,eg,ep,ev,re,r,rp) function c101204018.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c101204018.cfilter,tp,LOCATION_MZONE,0,2,nil) return Duel.IsExistingMatchingCard(c101204018.cfilter,tp,LOCATION_MZONE,0,1,nil)
end end
function c101204018.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c101204018.sptg(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.GetLocationCount(tp,LOCATION_MZONE)>0
...@@ -69,7 +69,7 @@ function c101204018.spop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,7 +69,7 @@ function c101204018.spop2(e,tp,eg,ep,ev,re,r,rp)
end end
function c101204018.sccon(e,tp,eg,ep,ev,re,r,rp) function c101204018.sccon(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
return not e:GetHandler():IsStatus(STATUS_CHAINING) and (ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE) return ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE
end end
function c101204018.sctg(e,tp,eg,ep,ev,re,r,rp,chk) function c101204018.sctg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSynchroSummonable,tp,LOCATION_EXTRA,0,1,nil,e:GetHandler()) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSynchroSummonable,tp,LOCATION_EXTRA,0,1,nil,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