Commit 2cf47492 authored by VanillaSalt's avatar VanillaSalt

fix

parent 91cd8cce
...@@ -24,8 +24,8 @@ function c29307554.checkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -24,8 +24,8 @@ function c29307554.checkop(e,tp,eg,ep,ev,re,r,rp)
local p2=false local p2=false
while tc do while tc do
if tc:IsPreviousLocation(LOCATION_MZONE) and tc:IsPreviousPosition(POS_DEFENCE) then if tc:IsPreviousLocation(LOCATION_MZONE) and tc:IsPreviousPosition(POS_DEFENCE) then
if tc:GetReasonPlayer()==0 and tc:IsControler(1) then p1=true end if tc:GetReasonPlayer()==0 and tc:GetPreviousControler()==1 then p1=true end
if tc:GetReasonPlayer()==1 and tc:IsControler(0) then p2=true end if tc:GetReasonPlayer()==1 and tc:GetPreviousControler()==0 then p2=true end
end end
tc=eg:GetNext() tc=eg:GetNext()
end end
......
...@@ -80,8 +80,8 @@ function c37115575.excon(e) ...@@ -80,8 +80,8 @@ function c37115575.excon(e)
return Duel.IsExistingMatchingCard(c37115575.exfilter,0,LOCATION_MZONE,LOCATION_MZONE,1,nil) return Duel.IsExistingMatchingCard(c37115575.exfilter,0,LOCATION_MZONE,LOCATION_MZONE,1,nil)
end end
function c37115575.cfilter(c,tp) function c37115575.cfilter(c,tp)
return c:IsControler(tp) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:GetPreviousCodeOnField()~=37115575 return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP)
and c:IsPreviousSetCard(0x23) and not c:IsReason(REASON_RULE) and c:IsPreviousSetCard(0x23) and c:GetPreviousCodeOnField()~=37115575 and not c:IsReason(REASON_RULE)
end end
function c37115575.spcon(e,tp,eg,ep,ev,re,r,rp) function c37115575.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c37115575.cfilter,1,nil,tp) return eg:IsExists(c37115575.cfilter,1,nil,tp)
......
...@@ -25,7 +25,6 @@ end ...@@ -25,7 +25,6 @@ end
function c48210156.spop(e,tp,eg,ep,ev,re,r,rp) function c48210156.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
local fid=e:GetHandler():GetFieldID()
if tc:IsRelateToEffect(e) and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP)~=0 then if tc:IsRelateToEffect(e) and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP)~=0 then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -45,10 +45,10 @@ function c69750546.costfilter(c) ...@@ -45,10 +45,10 @@ function c69750546.costfilter(c)
end end
function c69750546.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c69750546.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c69750546.costfilter,tp,LOCATION_DECK+LOCATION_HAND,0,2,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c69750546.costfilter,tp,LOCATION_DECK+LOCATION_HAND,0,2,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.GetMatchingGroup(c69750546.costfilter,tp,LOCATION_DECK+LOCATION_HAND,0,nil) local g=Duel.GetMatchingGroup(c69750546.costfilter,tp,LOCATION_DECK+LOCATION_HAND,0,nil)
if g:GetCount()>2 then if g:GetCount()>2 then
g=Duel.SelectMatchingCard(tp,c69750546.costfilter,tp,LOCATION_DECK+LOCATION_HAND,0,2,2,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
g=g:Select(tp,2,2,nil)
end end
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
end end
......
...@@ -30,7 +30,7 @@ function c74329404.initial_effect(c) ...@@ -30,7 +30,7 @@ function c74329404.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c74329404.ctfilter(c,tp) function c74329404.ctfilter(c,tp)
return c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousSetCard(0xc008) return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousSetCard(0xc008)
end end
function c74329404.ctcon(e,tp,eg,ep,ev,re,r,rp) function c74329404.ctcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c74329404.ctfilter,1,nil,tp) return eg:IsExists(c74329404.ctfilter,1,nil,tp)
......
...@@ -21,8 +21,8 @@ function c76547525.cfilter(c,atk) ...@@ -21,8 +21,8 @@ function c76547525.cfilter(c,atk)
return c:IsFaceup() and c:GetAttack()>atk return c:IsFaceup() and c:GetAttack()>atk
end end
function c76547525.descon(e,tp,eg,ep,ev,re,r,rp) function c76547525.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c76547525.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,e:GetHandler():GetAttack()) return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
and e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO and Duel.IsExistingMatchingCard(c76547525.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,e:GetHandler():GetAttack())
end end
function c76547525.desfilter(c) function c76547525.desfilter(c)
return c:IsFaceup() and c:IsDestructable() return c:IsFaceup() and c:IsDestructable()
......
...@@ -42,7 +42,7 @@ function c847915.actcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function c847915.actcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c847915.cfilter,tp,LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c847915.cfilter,tp,LOCATION_MZONE,0,1,nil)
end end
function c847915.dfilter(c,tp) function c847915.dfilter(c,tp)
return c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousSetCard(0x48) return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousSetCard(0x48)
end end
function c847915.descon(e,tp,eg,ep,ev,re,r,rp) function c847915.descon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c847915.dfilter,1,nil,tp) return eg:IsExists(c847915.dfilter,1,nil,tp)
......
...@@ -13,7 +13,7 @@ function c87473172.initial_effect(c) ...@@ -13,7 +13,7 @@ function c87473172.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c87473172.cfilter(c,tp) function c87473172.cfilter(c,tp)
return c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP)
and bit.band(c:GetPreviousRaceOnField(),RACE_WINDBEAST)~=0 and bit.band(c:GetPreviousRaceOnField(),RACE_WINDBEAST)~=0
end end
function c87473172.atkcon(e,tp,eg,ep,ev,re,r,rp) function c87473172.atkcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -18,7 +18,7 @@ function c92035412.initial_effect(c) ...@@ -18,7 +18,7 @@ function c92035412.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c92035412.cfilter(c,tp) function c92035412.cfilter(c,tp)
return c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_SZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousSetCard(0x30) return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_SZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousSetCard(0x30)
and bit.band(c:GetPreviousTypeOnField(),TYPE_EQUIP)~=0 and bit.band(c:GetPreviousTypeOnField(),TYPE_EQUIP)~=0
end end
function c92035412.spcon(e,tp,eg,ep,ev,re,r,rp) function c92035412.spcon(e,tp,eg,ep,ev,re,r,rp)
......
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